. disabled SRAM on power on when ROM & SRAM are sharing same memory area

This commit is contained in:
ekeeke31 2011-04-28 00:12:30 +00:00
parent 03f154f7af
commit ea8228be66

View File

@ -296,7 +296,9 @@ void md_cart_init(void)
}
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].read8 = 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;
}
}
}
/**********************************************
SVP CHIP