Loader seem to work, be seem we have a problem with jalr

This commit is contained in:
Quentin Legot
2023-03-28 21:26:58 +02:00
parent 7dff3bcdd9
commit 703c8e5448
3 changed files with 10 additions and 5 deletions

View File

@ -240,7 +240,7 @@ impl Machine {
let val = u32::from_be_bytes(val) as u64;
let inst : Instruction = decode(val);
self.print_status();
println!("executing instruction : {:016x} at pc {:x}", val, self.pc);
println!("executing instruction : {:016x} at pc 0x{:x}", val, self.pc);
println!("{}", print::print(decode(val), self.pc as i32));
let trace = Self::string_registers(self);
self.registers_trace.push_str(format!("{}\n", trace).as_str());