mirror of https://github.com/snes9xgit/snes9x.git
Attempt to fix RAM mapping for Light Fantasy.
This commit is contained in:
parent
c22622806d
commit
9f84ba9d0f
11
memmap.cpp
11
memmap.cpp
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue