Fix Mapper 106 IRQs

This commit is contained in:
alyosha-tas 2016-11-01 11:52:18 -04:00 committed by GitHub
parent 0945bae212
commit c1090d3d7f
1 changed files with 2 additions and 2 deletions

View File

@ -130,14 +130,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return ROM[(bank << 13) + (addr & 0x1FFF)];
}
public override void ClockPPU()
public override void ClockCPU()
{
IrqHook(1);
}
private void IrqHook(int a)
{
if ((NES.ppu.ppuphase != PPU.PPUPHASE.VBL) && IRQa)
if (IRQa)
{
IRQCount += a;
if (IRQCount > 0x10000)