Add DSP clock remainder to save state.
This commit is contained in:
parent
e3788c39e4
commit
63b0a6d45e
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user