Skip to content

Commit

Permalink
Misc: Fix PC logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioC31 authored and guerinoni committed Feb 18, 2024
1 parent 89b775a commit fea8366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/src/cpu/arm7tdmi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ impl Arm7tdmi {
}

#[cfg(feature = "logger")]
let current_ins = self.registers.program_counter() - 4;
let current_ins = self.registers.program_counter() - 8;
#[cfg(feature = "logger")]
log(format!("PC: 0x{current_ins:X} {decoded}"));

Expand Down

0 comments on commit fea8366

Please sign in to comment.