mac128: possible fix for out-of-bounds ROM access [R. Belmont]

This commit is contained in:
arbee 2020-09-27 20:02:47 -04:00
parent f6b3dcdb25
commit 264d0d19e0

View File

@ -336,7 +336,7 @@ uint16_t mac128_state::ram_r(offs_t offset)
{
if (m_overlay)
{
return m_rom_ptr[offset];
return m_rom_ptr[offset & 0x7ffff];
}
return m_ram_ptr[offset & m_ram_mask];