From 2c219815f94b26590b8f324b70b1f20b466f857d Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Tue, 29 May 2018 14:09:38 -0500 Subject: [PATCH] Remove IRQPending hack. --- cpu.cpp | 1 - cpuexec.cpp | 15 ++++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index 8d33f64b..11400f7b 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -231,7 +231,6 @@ static void S9xSoftResetCPU (void) CPU.IRQLine = FALSE; CPU.IRQTransition = FALSE; CPU.IRQExternal = FALSE; - CPU.IRQPending = Timings.IRQPendCount; CPU.MemSpeed = SLOW_ONE_CYCLE; CPU.MemSpeedx2 = SLOW_ONE_CYCLE * 2; CPU.FastROMSpeed = SLOW_ONE_CYCLE; diff --git a/cpuexec.cpp b/cpuexec.cpp index e3cf5a1a..6e501133 100644 --- a/cpuexec.cpp +++ b/cpuexec.cpp @@ -243,8 +243,6 @@ void S9xMainLoop (void) S9xDoHEventProcessing(); } - - CPU.IRQPending = Timings.IRQPendCount; CPU.IRQTransition = FALSE; CPU.IRQLine = TRUE; } @@ -253,15 +251,10 @@ void S9xMainLoop (void) { S9xUpdateIRQPositions(false); - if (CPU.IRQPending) - CPU.IRQPending--; - else - { - #ifdef DEBUGGER - S9xTraceMessage ("Timer triggered\n"); - #endif - CPU.IRQTransition = TRUE; - } + #ifdef DEBUGGER + S9xTraceMessage ("Timer triggered\n"); + #endif + CPU.IRQTransition = TRUE; } if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))