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 committed by Vas Crabb
parent 5001cd0ef4
commit 1cd4c83c03

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