Don't allow IRQ to occur instantly when just writing $4200.

This commit is contained in:
Brandon Wright 2018-08-14 17:32:21 -05:00
parent 0b75e2de9d
commit e3216ec88e
1 changed files with 1 additions and 1 deletions

View File

@ -1598,7 +1598,7 @@ void S9xSetCPU (uint8 Byte, uint16 Address)
CPU.IRQTransition = FALSE;
}
S9xUpdateIRQPositions(true);
S9xUpdateIRQPositions(false);
// NMI can trigger immediately during VBlank as long as NMI_read ($4210) wasn't cleard.
if ((Byte & 0x80) && !(Memory.FillRAM[0x4200] & 0x80) &&