From 2447029631cfa8e2f7b8e2b3e6e556e7e1106ff9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 2 Jan 2024 22:23:40 -0500 Subject: [PATCH] Don't page if acknowleding interrupts. --- Machines/Electron/Electron.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Machines/Electron/Electron.cpp b/Machines/Electron/Electron.cpp index 14669f1db..76752c3b8 100644 --- a/Machines/Electron/Electron.cpp +++ b/Machines/Electron/Electron.cpp @@ -288,19 +288,19 @@ template class ConcreteMachine: evaluate_interrupts(); // TODO: NMI - } + } else { + // Latch the paged ROM in case external hardware is being emulated. + active_rom_ = *value & 0xf; - // latch the paged ROM in case external hardware is being emulated - active_rom_ = *value & 0xf; - - // apply the ULA's test - if(*value & 0x08) { - if(*value & 0x04) { - keyboard_is_active_ = false; - basic_is_active_ = false; - } else { - keyboard_is_active_ = !(*value & 0x02); - basic_is_active_ = !keyboard_is_active_; + // apply the ULA's test + if(*value & 0x08) { + if(*value & 0x04) { + keyboard_is_active_ = false; + basic_is_active_ = false; + } else { + keyboard_is_active_ = !(*value & 0x02); + basic_is_active_ = !keyboard_is_active_; + } } } }