mirror of https://github.com/snes9xgit/snes9x.git
More WAI fixing.
This commit is contained in:
parent
937eeab133
commit
f57ba74547
|
@ -223,6 +223,8 @@ void S9xMainLoop (void)
|
||||||
{
|
{
|
||||||
CPU.WaitingForInterrupt = FALSE;
|
CPU.WaitingForInterrupt = FALSE;
|
||||||
Registers.PCw++;
|
Registers.PCw++;
|
||||||
|
CPU.Cycles += ONE_CYCLE;
|
||||||
|
S9xDoHEventProcessing();
|
||||||
}
|
}
|
||||||
|
|
||||||
S9xOpcode_NMI();
|
S9xOpcode_NMI();
|
||||||
|
@ -239,7 +241,7 @@ void S9xMainLoop (void)
|
||||||
{
|
{
|
||||||
CPU.WaitingForInterrupt = FALSE;
|
CPU.WaitingForInterrupt = FALSE;
|
||||||
Registers.PCw++;
|
Registers.PCw++;
|
||||||
CPU.Cycles += ONE_CYCLE * 2;
|
CPU.Cycles += ONE_CYCLE;
|
||||||
S9xDoHEventProcessing();
|
S9xDoHEventProcessing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3480,7 +3480,7 @@ static void OpCB (void)
|
||||||
#else
|
#else
|
||||||
CPU.WaitingForInterrupt = TRUE;
|
CPU.WaitingForInterrupt = TRUE;
|
||||||
Registers.PCw--;
|
Registers.PCw--;
|
||||||
AddCycles(TWO_CYCLES);
|
AddCycles(ONE_CYCLE);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue