Remove IRQPending hack.

This commit is contained in:
Brandon Wright 2018-05-29 14:09:38 -05:00
parent ba4f807b1d
commit 2c219815f9
2 changed files with 4 additions and 12 deletions

View File

@ -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;

View File

@ -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))