Mapper 126 and UNL-TF1201 - add irq variables to savestates
This commit is contained in:
parent
f2867643ac
commit
51dadcbfed
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue