From: kub Date: Mon, 8 Nov 2021 18:36:05 +0000 (+0100) Subject: sms, fix gg always zeroing ram X-Git-Tag: v2.00~428 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b8ff611e026f9115fd7a6b6d78b14978ea739c2;p=picodrive.git sms, fix gg always zeroing ram --- 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)