From c615c42199a5b4521dd2cc900bb66541b5f018de Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 26 May 2018 20:14:02 -0500 Subject: [PATCH] Here, too. --- cpuexec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpuexec.cpp b/cpuexec.cpp index 7d00fe30..09af47ac 100644 --- a/cpuexec.cpp +++ b/cpuexec.cpp @@ -243,7 +243,8 @@ void S9xMainLoop (void) CPU.WaitingForInterrupt = FALSE; Registers.PCw++; CPU.Cycles += ONE_CYCLE; - S9xDoHEventProcessing(); + while (CPU.Cycles >= CPU.NextEvent) + S9xDoHEventProcessing(); } S9xUpdateIRQPositions();