Add a fully functioning disassemblere?
This commit is contained in:
@@ -15,7 +15,7 @@ use netstack::NetStack;
|
||||
#[cfg(feature = "bonus:heap")]
|
||||
use heap::Heap;
|
||||
|
||||
const MAGIC_HEADER:u32 = 0x1DEA_DFAD;
|
||||
pub const MAGIC_HEADER:u32 = 0x1DEA_DFAD;
|
||||
const ANTI_BS_SIZE:usize = 0xFF;
|
||||
|
||||
pub struct Machine {
|
||||
@@ -85,7 +85,7 @@ impl Machine {
|
||||
|
||||
pub fn step(&mut self) -> Result<()> {
|
||||
match self.block.read_op() {
|
||||
Ok(Operation::Op(a, func)) => {
|
||||
Ok(Operation::Op(a, func, _)) => {
|
||||
if cfg!(feature = "debug:instr") {
|
||||
println!("{}", a);
|
||||
println!("Stack: {:?}", self.cur_frame().stack.data);
|
||||
|
||||
Reference in New Issue
Block a user