Skip to content

Commit

Permalink
fix timer 4 IRQ trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
LLeny committed Oct 11, 2024
1 parent 21c1be3 commit f20e5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mikey/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ impl Mikey {
match self.registers.data(INTSET) {
0 => self.cpu_pins.pin_off(M6502_IRQ),
16 => if self.timers.timer4_interrupt_enabled() {
self.cpu_pins.pin_off(M6502_IRQ);
} else {
self.cpu_pins.pin_on(M6502_IRQ);
} else {
self.cpu_pins.pin_off(M6502_IRQ);
},
_ => self.cpu_pins.pin_on(M6502_IRQ),
}
Expand Down

0 comments on commit f20e5e3

Please sign in to comment.