mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
mac128: possible fix for out-of-bounds ROM access [R. Belmont]
This commit is contained in:
parent
f6b3dcdb25
commit
264d0d19e0
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user