1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-02 20:30:00 +00:00

Ensure that an interrupt from a STOP doesn't return to the STOP.

This commit is contained in:
Thomas Harte 2020-01-01 14:51:47 -05:00
parent 2456fb120d
commit b184426f2b

View File

@ -206,6 +206,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
// exit the STOP.
if(bus_interrupt_level_ > interrupt_level_) {
pending_interrupt_level_ = bus_interrupt_level_;
program_counter_.full += 4; // Don't return to this stop.
execution_state_ = ExecutionState::BeginInterrupt;
continue;
}