mac128: possible fix for out-of-bounds ROM access [R. Belmont]
This commit is contained in:
parent
5001cd0ef4
commit
1cd4c83c03
@ -336,7 +336,7 @@ uint16_t mac128_state::ram_r(offs_t offset)
|
|||||||
{
|
{
|
||||||
if (m_overlay)
|
if (m_overlay)
|
||||||
{
|
{
|
||||||
return m_rom_ptr[offset];
|
return m_rom_ptr[offset & 0x7ffff];
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_ram_ptr[offset & m_ram_mask];
|
return m_ram_ptr[offset & m_ram_mask];
|
||||||
|
Loading…
Reference in New Issue
Block a user