IRQExternal isn't susceptible to same delays.

This commit is contained in:
Brandon Wright 2018-05-27 19:12:22 -05:00
parent eb82a9f706
commit ca9ec5ff19

View File

@ -249,7 +249,7 @@ void S9xMainLoop (void)
CPU.IRQLine = TRUE;
}
if ((CPU.Cycles >= Timings.NextIRQTimer || CPU.IRQExternal) && !CPU.IRQLine && !CPU.IRQTransition)
if ((CPU.Cycles >= Timings.NextIRQTimer) && !CPU.IRQLine && !CPU.IRQTransition)
{
if (CPU.IRQPending)
CPU.IRQPending--;
@ -259,7 +259,7 @@ void S9xMainLoop (void)
}
}
if (CPU.IRQLine && !CheckFlag(IRQ))
if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))
S9xOpcode_IRQ();
#ifdef DEBUGGER