From df765ed91bfd29b339ba5ed125e766d4e3758373 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 26 Oct 2023 23:52:07 +0200 Subject: [PATCH] core, fix bug in m68k state saving thanks to bnister for pointing this out --- pico/sek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5