More WAI fixing.

This commit is contained in:
Brandon Wright 2018-05-26 18:16:12 -05:00
parent 937eeab133
commit f57ba74547
2 changed files with 4 additions and 2 deletions

View File

@ -223,6 +223,8 @@ void S9xMainLoop (void)
{
CPU.WaitingForInterrupt = FALSE;
Registers.PCw++;
CPU.Cycles += ONE_CYCLE;
S9xDoHEventProcessing();
}
S9xOpcode_NMI();
@ -239,7 +241,7 @@ void S9xMainLoop (void)
{
CPU.WaitingForInterrupt = FALSE;
Registers.PCw++;
CPU.Cycles += ONE_CYCLE * 2;
CPU.Cycles += ONE_CYCLE;
S9xDoHEventProcessing();
}

View File

@ -3480,7 +3480,7 @@ static void OpCB (void)
#else
CPU.WaitingForInterrupt = TRUE;
Registers.PCw--;
AddCycles(TWO_CYCLES);
AddCycles(ONE_CYCLE);
#endif
}