Mapper 126 and UNL-TF1201 - add irq variables to savestates

This commit is contained in:
adelikat 2016-11-01 17:10:14 -05:00
parent f2867643ac
commit 51dadcbfed
2 changed files with 5 additions and 3 deletions

View File

@ -43,6 +43,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override void SyncState(Serializer ser)
{
ser.Sync("regs", ref regs);
ser.Sync("IRQa", ref IRQa);
ser.Sync("IRQCount", ref IRQCount);
base.SyncState(ser);
}

View File

@ -38,6 +38,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
ser.Sync("prg1", ref prg1);
ser.Sync("swap", ref swap);
ser.Sync("chr", ref chr);
ser.Sync("IRQa", ref IRQa);
ser.Sync("IRQCount", ref IRQCount);
ser.Sync("IRQpre", ref IRQpre);
}
public override void WritePRG(int addr, byte value)
@ -92,11 +95,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
if (IRQCount == 256)
IRQCount = 0;
}
}
}
public override byte ReadPRG(int addr)