Browse Source

sms, fix gg always zeroing ram

root 2 years ago
parent
commit
5b0375009f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pico/sms.c

+ 1 - 1
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)