6502: add rdy_freeze to savestates; should only affect c64 stuff

This commit is contained in:
goyuken 2014-10-19 22:19:53 +00:00
parent db681d5948
commit 05dedc67e2
1 changed files with 4 additions and 3 deletions

View File

@ -85,7 +85,7 @@ namespace BizHawk.Emulation.Cores.Components.M6502
public bool IRQ; public bool IRQ;
public bool NMI; public bool NMI;
public bool RDY; public bool RDY;
public void SyncState(Serializer ser) public void SyncState(Serializer ser)
{ {
@ -98,7 +98,7 @@ namespace BizHawk.Emulation.Cores.Components.M6502
ser.Sync("S", ref S); ser.Sync("S", ref S);
ser.Sync("NMI", ref NMI); ser.Sync("NMI", ref NMI);
ser.Sync("IRQ", ref IRQ); ser.Sync("IRQ", ref IRQ);
ser.Sync("RDY", ref RDY); ser.Sync("RDY", ref RDY);
ser.Sync("TotalExecutedCycles", ref TotalExecutedCycles); ser.Sync("TotalExecutedCycles", ref TotalExecutedCycles);
ser.Sync("opcode", ref opcode); ser.Sync("opcode", ref opcode);
ser.Sync("opcode2", ref opcode2); ser.Sync("opcode2", ref opcode2);
@ -109,6 +109,7 @@ namespace BizHawk.Emulation.Cores.Components.M6502
ser.Sync("iflag_pending", ref iflag_pending); ser.Sync("iflag_pending", ref iflag_pending);
ser.Sync("interrupt_pending", ref interrupt_pending); ser.Sync("interrupt_pending", ref interrupt_pending);
ser.Sync("branch_irq_hack", ref branch_irq_hack); ser.Sync("branch_irq_hack", ref branch_irq_hack);
ser.Sync("rdy_freeze", ref rdy_freeze);
ser.EndSection(); ser.EndSection();
} }
@ -245,4 +246,4 @@ namespace BizHawk.Emulation.Cores.Components.M6502
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80
}; };
} }
} }