From b6fff521e48534446f125d5bd10e1ffe1f72ae49 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 15 Oct 2024 12:27:30 -0400 Subject: [PATCH] Allow new interrupts to override the end of previous. --- Machines/AmstradCPC/AmstradCPC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index afdcbc153..349a4456b 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -1064,13 +1064,13 @@ class ConcreteMachine: default: break; } + + // Check whether the interrupt signal has changed due to CPU intervention. + if(interrupt_timer_.request_has_changed()) z80_.set_interrupt_line(interrupt_timer_.get_request()); } update_subsystems(); - // Check whether the interrupt signal has changed the other way. - if(interrupt_timer_.request_has_changed()) z80_.set_interrupt_line(interrupt_timer_.get_request()); - // This implementation doesn't use time-stuffing; once in-phase waits won't be longer // than a single cycle so there's no real performance benefit to trying to find the // next non-wait when a wait cycle comes in, and there'd be no benefit to reproducing