mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-05 10:28:58 +00:00
Ensure that an interrupt from a STOP doesn't return to the STOP.
This commit is contained in:
parent
2456fb120d
commit
b184426f2b
@ -206,6 +206,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
|||||||
// exit the STOP.
|
// exit the STOP.
|
||||||
if(bus_interrupt_level_ > interrupt_level_) {
|
if(bus_interrupt_level_ > interrupt_level_) {
|
||||||
pending_interrupt_level_ = bus_interrupt_level_;
|
pending_interrupt_level_ = bus_interrupt_level_;
|
||||||
|
program_counter_.full += 4; // Don't return to this stop.
|
||||||
execution_state_ = ExecutionState::BeginInterrupt;
|
execution_state_ = ExecutionState::BeginInterrupt;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user