Attempt to fix RAM mapping for Light Fantasy.

This commit is contained in:
Brandon Wright 2017-05-27 15:55:39 -05:00
parent c22622806d
commit 9f84ba9d0f
1 changed files with 9 additions and 2 deletions

View File

@ -2955,8 +2955,15 @@ void CMemory::map_WRAM (void)
void CMemory::map_LoROMSRAM (void) void CMemory::map_LoROMSRAM (void)
{ {
map_index(0x70, 0x7f, 0x0000, 0x7fff, MAP_LOROM_SRAM, MAP_TYPE_RAM); uint32 hi;
map_index(0xf0, 0xff, 0x0000, 0x7fff, MAP_LOROM_SRAM, MAP_TYPE_RAM);
if (ROMSize >= 10)
hi = 0xffff;
else
hi = 0x7fff;
map_index(0x70, 0x7f, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
} }
void CMemory::map_HiROMSRAM (void) void CMemory::map_HiROMSRAM (void)