From a70e2ccda6ceb33419828372e042219aa8c28377 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Wed, 27 Feb 2019 20:31:36 -0600 Subject: [PATCH] A stupid mistake fixed. --- apu/bapu/smp/smp_state.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apu/bapu/smp/smp_state.cpp b/apu/bapu/smp/smp_state.cpp index 97095ccb..7dd0c4e4 100644 --- a/apu/bapu/smp/smp_state.cpp +++ b/apu/bapu/smp/smp_state.cpp @@ -73,12 +73,13 @@ void SMP::save_spc (uint8 *block) { void SMP::save_state(uint8 **block) { uint8 *ptr = *block; memcpy(ptr, apuram, 64 * 1024); - ptr += 64 * 1024; if (status.iplrom_enable) { - memcpy (&ptr[0xffc0], highmem, 64); + memcpy(&ptr[0xffc0], highmem, 64); } + ptr += 64 * 1024; + #undef INT32 #define INT32(i) set_le32(ptr, (i)); ptr += sizeof(int32) INT32(clock);