Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 15, 2024
1 parent 8945291 commit 6105925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chips/z80ctc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub fn Z80CTC(comptime P: Pins, comptime Bus: anytype) type {
}
// interrupt ackowledge from CPU (M1|IORQ): put interrupt vector
// on data bus, clear INT pin and go into "serviced" state.
if ((chn.irq_state & IRQ.INT_REQUESTED) != 0 and (bus & (M1 | IORQ)) == IORQ | M1) {
if ((chn.irq_state & IRQ.INT_REQUESTED) != 0 and (bus & (M1 | IORQ)) == M1 | IORQ) {
chn.irq_state = (chn.irq_state & ~IRQ.INT_REQUESTED) | IRQ.INT_SERVICED;
bus = setData(bus, chn.int_vector) & ~INT;
}
Expand Down

0 comments on commit 6105925

Please sign in to comment.