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.IRQTransition = FALSE;
|
||||
CPU.IRQExternal = FALSE;
|
||||
CPU.IRQPending = Timings.IRQPendCount;
|
||||
CPU.MemSpeed = SLOW_ONE_CYCLE;
|
||||
CPU.MemSpeedx2 = SLOW_ONE_CYCLE * 2;
|
||||
CPU.FastROMSpeed = SLOW_ONE_CYCLE;
|
||||
|
|
15
cpuexec.cpp
15
cpuexec.cpp
|
@ -243,8 +243,6 @@ void S9xMainLoop (void)
|
|||
S9xDoHEventProcessing();
|
||||
}
|
||||
|
||||
|
||||
CPU.IRQPending = Timings.IRQPendCount;
|
||||
CPU.IRQTransition = FALSE;
|
||||
CPU.IRQLine = TRUE;
|
||||
}
|
||||
|
@ -253,15 +251,10 @@ void S9xMainLoop (void)
|
|||
{
|
||||
S9xUpdateIRQPositions(false);
|
||||
|
||||
if (CPU.IRQPending)
|
||||
CPU.IRQPending--;
|
||||
else
|
||||
{
|
||||
#ifdef DEBUGGER
|
||||
S9xTraceMessage ("Timer triggered\n");
|
||||
#endif
|
||||
CPU.IRQTransition = TRUE;
|
||||
}
|
||||
#ifdef DEBUGGER
|
||||
S9xTraceMessage ("Timer triggered\n");
|
||||
#endif
|
||||
CPU.IRQTransition = TRUE;
|
||||
}
|
||||
|
||||
if ((CPU.IRQLine || CPU.IRQExternal) && !CheckFlag(IRQ))
|
||||
|
|
Loading…
Reference in New Issue