1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-21 21:33:54 +00:00

Allow new interrupts to override the end of previous.

This commit is contained in:
Thomas Harte 2024-10-15 12:27:30 -04:00
parent 23f1308231
commit b6fff521e4

View File

@ -1064,13 +1064,13 @@ class ConcreteMachine:
default: break; default: break;
} }
// Check whether the interrupt signal has changed due to CPU intervention.
if(interrupt_timer_.request_has_changed()) z80_.set_interrupt_line(interrupt_timer_.get_request());
} }
update_subsystems(); update_subsystems();
// Check whether the interrupt signal has changed the other way.
if(interrupt_timer_.request_has_changed()) z80_.set_interrupt_line(interrupt_timer_.get_request());
// This implementation doesn't use time-stuffing; once in-phase waits won't be longer // This implementation doesn't use time-stuffing; once in-phase waits won't be longer
// than a single cycle so there's no real performance benefit to trying to find the // than a single cycle so there's no real performance benefit to trying to find the
// next non-wait when a wait cycle comes in, and there'd be no benefit to reproducing // next non-wait when a wait cycle comes in, and there'd be no benefit to reproducing