add tracking of jump parameters

This commit is contained in:
Henrik Böving
2020-11-30 23:31:58 +01:00
parent 5755ade839
commit 44f7bf7501

View File

@@ -165,6 +165,12 @@ pub fn simulate<'a>(instructions: Vec<Instruction<'a>>, max_steps: usize) -> Vec
_ => None _ => None
} }
} }
},
Instruction::Jump(JumpArgument::MemoryLocation(location), _) => {
Some(OpcodeInfo{
addr: location,
content: data_memory[location as usize]
})
} }
_ => None _ => None
}; };