}\r
} else {\r
sram_size = SRam.end-SRam.start+1;\r
- if(Pico.m.sram_reg & 4) sram_size=0x2000;\r
+ if (Pico.m.sram_status & SRS_EEPROM)\r
+ sram_size = 0x2000;\r
sram_data = SRam.data;\r
}\r
if (!sram_data) return 0; // SRam forcefully disabled for this game\r