add tracking of jump parameters
This commit is contained in:
@@ -165,6 +165,12 @@ pub fn simulate<'a>(instructions: Vec<Instruction<'a>>, max_steps: usize) -> Vec
|
||||
_ => None
|
||||
}
|
||||
}
|
||||
},
|
||||
Instruction::Jump(JumpArgument::MemoryLocation(location), _) => {
|
||||
Some(OpcodeInfo{
|
||||
addr: location,
|
||||
content: data_memory[location as usize]
|
||||
})
|
||||
}
|
||||
_ => None
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user