1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Merge pull request #710 from TomHarte/STOP

Ensure that an interrupt from a STOP doesn't return to the STOP.
This commit is contained in:
Thomas Harte 2020-01-01 15:00:11 -05:00 committed by GitHub
commit 0bf1a87f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}