Don't map high SRAM range on LoROM if no SRAM.

This commit is contained in:
BearOso 2023-01-27 15:52:36 -06:00
parent c9b0d104f8
commit a069749403

View File

@ -2822,7 +2822,8 @@ void CMemory::map_LoROMSRAM (void)
hi = 0xffff;
map_index(0x70, 0x7d, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
if (SRAMSize > 0)
map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
}
void CMemory::map_HiROMSRAM (void)