From 12846317cb4b4be6bb0b7b98892d66f0222dc0f1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 26 Aug 2024 21:13:25 -0400 Subject: [PATCH] Short-circuit non-interrupts. --- Machines/Acorn/Electron/Electron.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Machines/Acorn/Electron/Electron.cpp b/Machines/Acorn/Electron/Electron.cpp index 511fbe7a6..eb69eced0 100644 --- a/Machines/Acorn/Electron/Electron.cpp +++ b/Machines/Acorn/Electron/Electron.cpp @@ -687,6 +687,9 @@ template class ConcreteMachine: } inline void signal_interrupt(Interrupt interrupt) { + if(!interrupt) { + return; + } interrupt_status_ |= interrupt; evaluate_interrupts(); }