1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Ensures same-level interrupts don't double trigger.

This commit is contained in:
Thomas Harte 2019-11-12 22:18:13 -05:00
parent ccce127f13
commit 6ec3c47cc0

View File

@ -302,7 +302,7 @@ void MFP68901::update_interrupts() {
// Software interrupt mode: permit only if neither this interrupt
// nor a higher interrupt is currently in service.
const int highest_bit = msb16(firing_interrupts);
interrupt_line_ = !(interrupt_in_service_ & ~(highest_bit - 1));
interrupt_line_ = !(interrupt_in_service_ & ~(highest_bit + highest_bit - 1));
} else {
// Auto-interrupt mode; just signal.
interrupt_line_ = true;