From: kub Date: Thu, 26 Oct 2023 21:52:07 +0000 (+0200) Subject: core, fix bug in m68k state saving X-Git-Tag: v2.00~173 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df765ed91bfd29b339ba5ed125e766d4e3758373;p=picodrive.git core, fix bug in m68k state saving thanks to bnister for pointing this out --- diff --git a/pico/sek.c b/pico/sek.c index 77cf73e9..4dd0b4ab 100644 --- a/pico/sek.c +++ b/pico/sek.c @@ -221,7 +221,7 @@ PICO_INTERNAL void SekPackCpu(unsigned char *cpu, int is_sub) *(s16 *)(cpu+0x4e) = SekCycleCntS68k - SekCycleAimS68k; } else { *(u32 *)(cpu+0x50) = Pico.t.m68c_cnt; - *(u32 *)(cpu+0x4e) = Pico.t.m68c_cnt - Pico.t.m68c_aim; + *(s16 *)(cpu+0x4e) = Pico.t.m68c_cnt - Pico.t.m68c_aim; } }