Fixed 6522 & interrupt:

. Broadside needs to see IRQ within 17 cycles (6 opcodes) of 6522 counter underflowing to detect Mockingboard. (Fixes #605)
This commit is contained in:
tomcw
2019-01-06 16:54:54 +00:00
parent eea8cb3cdf
commit ceb0416bf3
3 changed files with 10 additions and 0 deletions
+7
View File
@@ -427,6 +427,13 @@ static __forceinline void CheckInterruptSources(ULONG uExecutedCycles)
}
}
// GH#605: IRQ needs to occur within 17 cycles (6 opcodes) of configuring the timer interrupt
void CpuAdjustIrqCheck(UINT uCyclesUntilInterrupt)
{
if (uCyclesUntilInterrupt < IRQ_CHECK_TIMEOUT)
g_nIrqCheckTimeout = uCyclesUntilInterrupt;
}
//===========================================================================
#include "CPU/cpu6502.h" // MOS 6502