mirror of
https://github.com/holub/mame
synced 2025-06-26 22:29:10 +03:00
pasopia/rampac2: Mask address for reads as well as writes (nw)
This commit is contained in:
parent
e2d8bda2cf
commit
08a61c40e1
@ -122,7 +122,7 @@ void pasopia_rampac2_device::nvram_default()
|
||||
|
||||
u8 pasopia_rampac2_device::pac2_read(offs_t offset)
|
||||
{
|
||||
return m_ram[m_ram_index];
|
||||
return m_ram[m_ram_index & (m_ram_size - 1)];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user