mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 12:11:50 +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,7 +296,9 @@ 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 */
|
||||||
|
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;
|
||||||
m68k_memory_map[sram.start >> 16].read16 = NULL;
|
m68k_memory_map[sram.start >> 16].read16 = NULL;
|
||||||
@ -306,6 +308,7 @@ void md_cart_init(void)
|
|||||||
zbank_memory_map[sram.start >> 16].write = NULL;
|
zbank_memory_map[sram.start >> 16].write = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**********************************************
|
/**********************************************
|
||||||
SVP CHIP
|
SVP CHIP
|
||||||
|
Loading…
Reference in New Issue
Block a user