mmm... not-power-of-2 ROMs (e.g. secalpha) do not like

the (size-1) masking. nw.
This commit is contained in:
Fabio Priuli 2014-09-21 08:04:30 +00:00
parent a4166cb413
commit 24179c7522

View File

@ -53,7 +53,10 @@ UINT8 colecovision_standard_cartridge_device::bd_r(address_space &space, offs_t
{
if (!_8000 || !_a000 || !_c000 || !_e000)
{
data = m_rom[offset & m_rom.mask()];
if (offset < m_rom.bytes())
data = m_rom[offset];
else
data = 0xff;
}
return data;