mirror of
https://github.com/holub/mame
synced 2025-06-02 02:49:44 +03:00
electron abr/aqr use bitwise operators (nw)
This commit is contained in:
parent
32d28fda03
commit
1cf74c83a4
@ -54,7 +54,7 @@ uint8_t electron_abr_device::read(address_space &space, offs_t offset, int infc,
|
|||||||
{
|
{
|
||||||
if (offset >= 0x0000 && offset < 0x4000)
|
if (offset >= 0x0000 && offset < 0x4000)
|
||||||
{
|
{
|
||||||
data = m_nvram[(offset & 0x3fff) + (romqa * 0x4000)];
|
data = m_nvram[(offset & 0x3fff) | (romqa << 14)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ void electron_abr_device::write(address_space &space, offs_t offset, uint8_t dat
|
|||||||
{
|
{
|
||||||
if (offset >= 0x0000 && offset < 0x4000 && !m_bank_locked[romqa])
|
if (offset >= 0x0000 && offset < 0x4000 && !m_bank_locked[romqa])
|
||||||
{
|
{
|
||||||
m_nvram[(offset & 0x3fff) + (romqa * 0x4000)] = data;
|
m_nvram[(offset & 0x3fff) | (romqa << 14)] = data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ uint8_t electron_aqr_device::read(address_space &space, offs_t offset, int infc,
|
|||||||
{
|
{
|
||||||
if (offset >= 0x0000 && offset < 0x4000)
|
if (offset >= 0x0000 && offset < 0x4000)
|
||||||
{
|
{
|
||||||
data = m_ram[(offset & 0x3fff) + (m_page_register * 0x4000)];
|
data = m_ram[(offset & 0x3fff) | (m_page_register << 14)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ void electron_aqr_device::write(address_space &space, offs_t offset, uint8_t dat
|
|||||||
{
|
{
|
||||||
if (offset >= 0x0000 && offset < 0x4000 && !m_lock_register)
|
if (offset >= 0x0000 && offset < 0x4000 && !m_lock_register)
|
||||||
{
|
{
|
||||||
m_ram[(offset & 0x3fff) + (m_page_register * 0x4000)] = data;
|
m_ram[(offset & 0x3fff) | (m_page_register << 14)] = data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user