Divert IRQTransition for the moment. Increase time after WAI to 14 cycles.

This commit is contained in:
Brandon Wright 2018-06-12 14:49:40 -05:00
parent 583e4b740d
commit 4017727bdf
1 changed files with 3 additions and 2 deletions

View File

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