mirror of
https://github.com/TomHarte/CLK.git
synced 2026-01-23 01:16:10 +00:00
Ensure NMI isn't perpetual.
This commit is contained in:
@@ -665,6 +665,7 @@ void Processor<model, Traits>::run_for(const Cycles cycles) {
|
||||
if constexpr (is_65c02(model)) registers.flags.decimal = 0;
|
||||
|
||||
if(Storage::captured_interrupt_requests_ & InterruptRequest::NMI) {
|
||||
Storage::inputs_.interrupt_requests &= ~InterruptRequest::NMI;
|
||||
goto nmi;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user