mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Ensure proper resumption after a forced exit in will_perform
.
This commit is contained in:
parent
91a6911a51
commit
cd5f3c90c2
@ -592,6 +592,11 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
||||
|
||||
// Signal the bus handler if requested.
|
||||
if constexpr (signal_will_perform) {
|
||||
// Set the state to Decode, so that if the callee pulls any shenanigans in order
|
||||
// to force an exit here, the interpreter can resume without skipping a beat.
|
||||
//
|
||||
// signal_will_perform is overtly a debugging/testing feature.
|
||||
state_ = Decode;
|
||||
bus_handler_.will_perform(instruction_address_.l, opcode_);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user