Skip to content
Snippets Groups Projects
Verified Commit 03b06060 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: more CPU log

parent 1b9356cc
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2577 failed
...@@ -280,12 +280,18 @@ impl Cpu { ...@@ -280,12 +280,18 @@ impl Cpu {
} }
#[cfg(feature = "cpulog")] #[cfg(feature = "cpulog")]
println!( {
"[0x{:04x}] {}\t({} cycles)", println!(
self.pc - 1, "[0x{:04x}] {}\t({} cycles)",
inst_str, self.pc - 1,
inst_time 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")] #[cfg(feature = "secure")]
if self.mmu.boot_active() && self.pc - 1 > 0x08ff { if self.mmu.boot_active() && self.pc - 1 > 0x08ff {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment