fixed SRAM initialization bug (introduced in r582)

This commit is contained in:
ekeeke31 2011-05-30 19:36:18 +00:00
parent 4a39669a8d
commit 6ebfda53d5

View File

@ -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;