mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
simplify calculation (nw)
This commit is contained in:
parent
ed7ef7d1b2
commit
2fdb41658e
@ -92,14 +92,12 @@ WRITE8_MEMBER( univac_state::port43_w )
|
||||
|
||||
READ8_MEMBER( univac_state::vram_r )
|
||||
{
|
||||
offs_t offs = (offset & 0x1fff) ^ (BIT(offset, 13) ? 0x2000 : 0) ^ (m_screen_num ? 0x2000 : 0);
|
||||
return m_p_videoram[offs];
|
||||
return m_p_videoram[offset ^ (m_screen_num ? 0x2000 : 0)];
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( univac_state::vram_w )
|
||||
{
|
||||
offs_t offs = (offset & 0x1fff) ^ (BIT(offset, 13) ? 0x2000 : 0) ^ (m_screen_num ? 0x2000 : 0);
|
||||
m_p_videoram[offs] = data;
|
||||
m_p_videoram[offset ^ (m_screen_num ? 0x2000 : 0)] = data;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user