Fix for 'IRQ occurring on last cycle of opcode' not always true. (Fixes #796)

. FT demo MAD2.DSK - original version now correctly crashes at start of full-screen scroller
. FT demo MADEF.DSK - graphics glitch on vertical edge where it transitions from GR to HGR mode
This commit is contained in:
tomcw 2020-06-27 19:29:29 +01:00
parent e48ea095a3
commit 60d54d6f3b

View File

@ -1990,7 +1990,7 @@ bool MB_UpdateCycles(ULONG uExecutedCycles)
if (pMB->bTimer1Active && bTimer1Irq)
{
UpdateIFR(pMB, 0, IxR_TIMER1);
bIrqOnLastOpcodeCycle = true;
bIrqOnLastOpcodeCycle = bTimer1IrqOnLastCycle;
MB_Update();