IRQ inhibit fix for 0x4017

This commit is contained in:
qeed 2009-06-12 14:27:50 +00:00
parent 4765aeafd6
commit fa2a4a27fc
1 changed files with 6 additions and 2 deletions

View File

@ -973,8 +973,12 @@ DECLFW(Write_IRQFM)
FrameSoundUpdate();
fcnt=1;
fhcnt=fhinc;
X6502_IRQEnd(FCEU_IQFCOUNT);
SIRQStat&=~0x40;
//X6502_IRQEnd(FCEU_IQFCOUNT);
if (V & 0x1)
{
X6502_IRQEnd(FCEU_IQFCOUNT);
SIRQStat&=~0x40;
}
IRQFrameMode=V;
}