From 4017727bdf40cd892ea4735142bfbbb4283c43e1 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Tue, 12 Jun 2018 14:49:40 -0500 Subject: [PATCH] Divert IRQTransition for the moment. Increase time after WAI to 14 cycles. --- cpuexec.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpuexec.cpp b/cpuexec.cpp index cd79f018..2e866001 100644 --- a/cpuexec.cpp +++ b/cpuexec.cpp @@ -233,7 +233,7 @@ void S9xMainLoop (void) { CPU.WaitingForInterrupt = FALSE; Registers.PCw++; - CPU.Cycles += ONE_CYCLE; + CPU.Cycles += TWO_CYCLES + ONE_DOT_CYCLE / 2; while (CPU.Cycles >= CPU.NextEvent) S9xDoHEventProcessing(); } @@ -249,7 +249,7 @@ void S9xMainLoop (void) { CPU.WaitingForInterrupt = FALSE; Registers.PCw++; - CPU.Cycles += ONE_CYCLE; + CPU.Cycles += TWO_CYCLES + ONE_DOT_CYCLE / 2; while (CPU.Cycles >= CPU.NextEvent) S9xDoHEventProcessing(); } @@ -265,6 +265,7 @@ void S9xMainLoop (void) S9xUpdateIRQPositions(false); CPU.IRQTransition = TRUE; + continue; } if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))