mirror of https://github.com/snes9xgit/snes9x.git
Remove IRQPending hack.
This commit is contained in:
parent
ba4f807b1d
commit
2c219815f9
1
cpu.cpp
1
cpu.cpp
|
@ -231,7 +231,6 @@ static void S9xSoftResetCPU (void)
|
||||||
CPU.IRQLine = FALSE;
|
CPU.IRQLine = FALSE;
|
||||||
CPU.IRQTransition = FALSE;
|
CPU.IRQTransition = FALSE;
|
||||||
CPU.IRQExternal = FALSE;
|
CPU.IRQExternal = FALSE;
|
||||||
CPU.IRQPending = Timings.IRQPendCount;
|
|
||||||
CPU.MemSpeed = SLOW_ONE_CYCLE;
|
CPU.MemSpeed = SLOW_ONE_CYCLE;
|
||||||
CPU.MemSpeedx2 = SLOW_ONE_CYCLE * 2;
|
CPU.MemSpeedx2 = SLOW_ONE_CYCLE * 2;
|
||||||
CPU.FastROMSpeed = SLOW_ONE_CYCLE;
|
CPU.FastROMSpeed = SLOW_ONE_CYCLE;
|
||||||
|
|
|
@ -243,8 +243,6 @@ void S9xMainLoop (void)
|
||||||
S9xDoHEventProcessing();
|
S9xDoHEventProcessing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CPU.IRQPending = Timings.IRQPendCount;
|
|
||||||
CPU.IRQTransition = FALSE;
|
CPU.IRQTransition = FALSE;
|
||||||
CPU.IRQLine = TRUE;
|
CPU.IRQLine = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -253,16 +251,11 @@ void S9xMainLoop (void)
|
||||||
{
|
{
|
||||||
S9xUpdateIRQPositions(false);
|
S9xUpdateIRQPositions(false);
|
||||||
|
|
||||||
if (CPU.IRQPending)
|
|
||||||
CPU.IRQPending--;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
#ifdef DEBUGGER
|
#ifdef DEBUGGER
|
||||||
S9xTraceMessage ("Timer triggered\n");
|
S9xTraceMessage ("Timer triggered\n");
|
||||||
#endif
|
#endif
|
||||||
CPU.IRQTransition = TRUE;
|
CPU.IRQTransition = TRUE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))
|
if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))
|
||||||
S9xOpcode_IRQ();
|
S9xOpcode_IRQ();
|
||||||
|
|
Loading…
Reference in New Issue