X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMemoryCmn.c;h=b49eaf2b426af0678e80bb91e98b94e4165c4164;hb=9dc09829192f73f5d0502c8b312a39863bca60d3;hp=145a7e682c31c06f8f4b1bccf57a1879e6be5518;hpb=c6196c0f0108d27df27d576ece320b3ec5705bb3;p=picodrive.git diff --git a/Pico/MemoryCmn.c b/Pico/MemoryCmn.c index 145a7e6..b49eaf2 100644 --- a/Pico/MemoryCmn.c +++ b/Pico/MemoryCmn.c @@ -217,7 +217,7 @@ void OtherWrite16(u32 a,u32 d) #ifndef _CD_MEMORY_C if (a >= SRam.start && a <= SRam.end) { elprintf(EL_SRAMIO, "sram w16 [%06x] %04x @ %06x", a, d, SekPc); - if ((a&0x16)==0x10) { // detected, not EEPROM, write not disabled + if ((Pico.m.sram_reg&0x16)==0x10) { // detected, not EEPROM, write not disabled u8 *pm=(u8 *)(SRam.data-SRam.start+a); *pm++=d>>8; *pm++=d;