mirror of
https://github.com/holub/mame
synced 2025-05-04 21:43:05 +03:00
mmm... not-power-of-2 ROMs (e.g. secalpha) do not like
the (size-1) masking. nw.
This commit is contained in:
parent
a4166cb413
commit
24179c7522
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user