From b184426f2b9f0322a5e40d35917bc07195f1433c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 1 Jan 2020 14:51:47 -0500 Subject: [PATCH] Ensure that an interrupt from a STOP doesn't return to the STOP. --- Processors/68000/Implementation/68000Implementation.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index c05bb97fa..215a999a7 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -206,6 +206,7 @@ template 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; }