Do HEventProcessing conditionally.

This commit is contained in:
Brandon Wright 2018-05-26 20:12:44 -05:00
parent f57ba74547
commit 5595e3cb96
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ void S9xMainLoop (void)
CPU.WaitingForInterrupt = FALSE;
Registers.PCw++;
CPU.Cycles += ONE_CYCLE;
S9xDoHEventProcessing();
while (CPU.Cycles >= CPU.NextEvent)
S9xDoHEventProcessing();
}
S9xOpcode_NMI();