mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-28 02:45:27 +01:00
fixed SRAM initialization bug (introduced in r582)
This commit is contained in:
parent
4a39669a8d
commit
6ebfda53d5
@ -297,7 +297,7 @@ void md_cart_init(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Static RAM (64k max.) - disabled on reset if ROM is mapped in same area */
|
/* Static RAM (64k max.) - disabled on reset if ROM is mapped in same area */
|
||||||
if (cart.romsize < sram.start)
|
if (cart.romsize <= sram.start)
|
||||||
{
|
{
|
||||||
m68k_memory_map[sram.start >> 16].base = sram.sram;
|
m68k_memory_map[sram.start >> 16].base = sram.sram;
|
||||||
m68k_memory_map[sram.start >> 16].read8 = NULL;
|
m68k_memory_map[sram.start >> 16].read8 = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user