Skip to content

Commit

Permalink
ARM: Fix handling interrupt
Browse files Browse the repository at this point in the history
We were increasing PC one time too much.
  • Loading branch information
AlessioC31 committed Feb 17, 2024
1 parent 3a71f12 commit 9573f9a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions emu/src/cpu/arm7tdmi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,6 @@ impl Arm7tdmi {
.set_program_counter(new_pc + arm::operations::SIZE_OF_INSTRUCTION);

self.fetched_arm = Some(self.fetch_arm());

self.registers
.set_program_counter(new_pc + arm::operations::SIZE_OF_INSTRUCTION * 2);
}

pub fn step(&mut self) {
Expand Down

0 comments on commit 9573f9a

Please sign in to comment.