mirror of https://github.com/snes9xgit/snes9x.git
Don't continuously skip over NMI triggers that happened late in the scanline.
This commit is contained in:
parent
e14a32dd8c
commit
7f88063b84
|
@ -412,6 +412,10 @@ void S9xDoHEventProcessing (void)
|
||||||
SuperFX.oneLineDone = FALSE;
|
SuperFX.oneLineDone = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Did we skip over a late NMI Trigger Pos? If so, reschedule it immediately. */
|
||||||
|
if (CPU.NMIPending && (CPU.Cycles >= Timings.NMITriggerPos))
|
||||||
|
Timings.NMITriggerPos = 0;
|
||||||
|
|
||||||
S9xAPUEndScanline();
|
S9xAPUEndScanline();
|
||||||
CPU.Cycles -= Timings.H_Max;
|
CPU.Cycles -= Timings.H_Max;
|
||||||
CPU.PrevCycles -= Timings.H_Max;
|
CPU.PrevCycles -= Timings.H_Max;
|
||||||
|
|
Loading…
Reference in New Issue