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
1 changed files with 2 additions and 1 deletions

View File

@ -2822,7 +2822,8 @@ void CMemory::map_LoROMSRAM (void)
hi = 0xffff; hi = 0xffff;
map_index(0x70, 0x7d, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM); 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) void CMemory::map_HiROMSRAM (void)