Add DSP clock remainder to save state.

This commit is contained in:
Brandon Wright 2011-07-04 17:33:09 -05:00
parent e3788c39e4
commit 63b0a6d45e
2 changed files with 5 additions and 1 deletions

View File

@ -617,6 +617,8 @@ void S9xAPUSaveState (uint8 *block)
ptr += sizeof(int32);
SNES::set_le32(ptr, spc::remainder);
ptr += sizeof(int32);
SNES::set_le32(ptr, SNES::dsp.clock);
ptr += sizeof(int32);
memcpy (ptr, SNES::cpu.registers, 4);
}
@ -633,6 +635,8 @@ void S9xAPULoadState (uint8 *block)
ptr += sizeof(int32);
spc::remainder = SNES::get_le32(ptr);
ptr += sizeof(int32);
SNES::dsp.clock = SNES::get_le32(ptr);
ptr += sizeof(int32);
memcpy (SNES::cpu.registers, ptr, 4);
}

View File

@ -93,7 +93,7 @@ public:
Timer<128> timer1;
Timer< 16> timer2;
void tick();
alwaysinline void tick();
alwaysinline void op_io();
debugvirtual alwaysinline uint8 op_read(uint16 addr);
debugvirtual alwaysinline void op_write(uint16 addr, uint8 data);