mirror of
https://github.com/libretro/bsnes-libretro-cplusplus98.git
synced 2025-04-14 16:10:32 +00:00
Seems to fix save state problems in alt/smp [BearOso].
This commit is contained in:
parent
37a82d0dda
commit
99510c7114
@ -39,7 +39,6 @@ void SMP::op_step() {
|
||||
#define op_writeaddr(addr, data) op_write(addr, data)
|
||||
#define op_readstack() op_read(0x0100 | ++regs.sp)
|
||||
#define op_writestack(data) op_write(0x0100 | regs.sp--, data)
|
||||
static unsigned rd, wr, dp, sp, ya, bit;
|
||||
|
||||
#if defined(CYCLE_ACCURATE)
|
||||
|
||||
|
@ -135,6 +135,13 @@ void SMP::serialize(serializer &s) {
|
||||
s.integer(timer2.stage1_ticks);
|
||||
s.integer(timer2.stage2_ticks);
|
||||
s.integer(timer2.stage3_ticks);
|
||||
|
||||
s.integer(rd);
|
||||
s.integer(wr);
|
||||
s.integer(dp);
|
||||
s.integer(sp);
|
||||
s.integer(ya);
|
||||
s.integer(bit);
|
||||
}
|
||||
|
||||
SMP::SMP() {
|
||||
|
@ -44,6 +44,8 @@ public:
|
||||
unsigned opcode_number;
|
||||
unsigned opcode_cycle;
|
||||
|
||||
unsigned rd, wr, dp, sp, ya, bit;
|
||||
|
||||
struct Regs {
|
||||
uint16 pc;
|
||||
uint8 sp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user