From 5b8ff611e026f9115fd7a6b6d78b14978ea739c2 Mon Sep 17 00:00:00 2001 From: kub Date: Mon, 8 Nov 2021 19:36:05 +0100 Subject: [PATCH] sms, fix gg always zeroing ram --- pico/sms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/sms.c b/pico/sms.c index e7fe4bab..a62f4077 100644 --- a/pico/sms.c +++ b/pico/sms.c @@ -552,7 +552,7 @@ void PicoResetMS(void) Pico.video.reg[10] = 0xff; // BIOS, clear zram (unitialized on Mark-III, cf src/mame/drivers/sms.cpp) - memset(PicoMem.zram, Pico.m.hardware & 0x4 ? 0xf0:0, sizeof(PicoMem.zram)); + memset(PicoMem.zram, (Pico.m.hardware&5) == 4 ? 0xf0:0, sizeof(PicoMem.zram)); } void PicoPowerMS(void) -- 2.39.5