diff --git a/src/cpu.rs b/src/cpu.rs index 4c93824425308b52046dff2df463e99c564ea9b0..204c8dfce0e13a73d310f02584bd33687b54e98b 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -280,12 +280,18 @@ impl Cpu { } #[cfg(feature = "cpulog")] - println!( - "[0x{:04x}] {}\t({} cycles)", - self.pc - 1, - inst_str, - inst_time - ); + { + println!( + "[0x{:04x}] {}\t({} cycles)", + self.pc - 1, + inst_str, + inst_time + ); + println!( + "[A=0x{:02x} B=0x{:02x} H=0x{:02x} L=0x{:02x}]", + self.a, self.b, self.h, self.l + ) + } #[cfg(feature = "secure")] if self.mmu.boot_active() && self.pc - 1 > 0x08ff {