New attempt to fix RAM mapping for Light Fantasy (matches higan)

This commit is contained in:
qwertymodo 2017-10-09 13:15:44 -07:00
parent d174b82134
commit e4d08bb71a
1 changed files with 4 additions and 4 deletions

View File

@ -2957,12 +2957,12 @@ void CMemory::map_LoROMSRAM (void)
{
uint32 hi;
if (ROMSize >= 10)
hi = 0xffff;
else
if (ROMSize > 11 || SRAMSize > 5)
hi = 0x7fff;
else
hi = 0xffff;
map_index(0x70, 0x7f, 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);
}