From f7e95c828e9073c6114b4401518db2a1e38b3613 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 24 Apr 2013 09:37:17 +0000 Subject: [PATCH] compile fix (nw) --- src/mess/machine/md_rom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mess/machine/md_rom.c b/src/mess/machine/md_rom.c index fb5c7201db0..742c50f6c2f 100644 --- a/src/mess/machine/md_rom.c +++ b/src/mess/machine/md_rom.c @@ -928,8 +928,8 @@ READ16_MEMBER(md_rom_pokea_device::read_a13) READ16_MEMBER(md_rom_realtec_device::read) { if (offset < (m_bank_size * 0x20000)) // two banks of same (variable) size at the bottom of the rom - return m_rom[MD_ADDR(offset + (m_bank_addr * 0x20000)/2)]; - return m_rom[MD_ADDR((offset & 0x1fff/2) + 0x7e000/2)]; // otherwise it accesses the final 8k of the image + return m_rom[MD_ADDR((offset + (m_bank_addr * 0x20000)/2))]; + return m_rom[MD_ADDR(((offset & 0x1fff/2) + 0x7e000/2))]; // otherwise it accesses the final 8k of the image } WRITE16_MEMBER(md_rom_realtec_device::write)