mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 04:01:48 +01:00
. disabled SRAM on power on when ROM & SRAM are sharing same memory area
This commit is contained in:
parent
03f154f7af
commit
ea8228be66
@ -296,14 +296,17 @@ void md_cart_init(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Static RAM (64k max.) */
|
/* Static RAM (64k max.) - disabled on reset if ROM is mapped in same area */
|
||||||
m68k_memory_map[sram.start >> 16].base = sram.sram;
|
if (cart.romsize < sram.start)
|
||||||
m68k_memory_map[sram.start >> 16].read8 = NULL;
|
{
|
||||||
m68k_memory_map[sram.start >> 16].read16 = NULL;
|
m68k_memory_map[sram.start >> 16].base = sram.sram;
|
||||||
m68k_memory_map[sram.start >> 16].write8 = NULL;
|
m68k_memory_map[sram.start >> 16].read8 = NULL;
|
||||||
m68k_memory_map[sram.start >> 16].write16 = NULL;
|
m68k_memory_map[sram.start >> 16].read16 = NULL;
|
||||||
zbank_memory_map[sram.start >> 16].read = NULL;
|
m68k_memory_map[sram.start >> 16].write8 = NULL;
|
||||||
zbank_memory_map[sram.start >> 16].write = NULL;
|
m68k_memory_map[sram.start >> 16].write16 = NULL;
|
||||||
|
zbank_memory_map[sram.start >> 16].read = NULL;
|
||||||
|
zbank_memory_map[sram.start >> 16].write = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user