trunk/src/mess/machine/md_rom.c
| r22522 | r22523 | |
| 928 | 928 | READ16_MEMBER(md_rom_realtec_device::read) |
| 929 | 929 | { |
| 930 | 930 | if (offset < (m_bank_size * 0x20000)) // two banks of same (variable) size at the bottom of the rom |
| 931 | | return m_rom[MD_ADDR(offset + (m_bank_addr * 0x20000)/2)]; |
| 932 | | return m_rom[MD_ADDR((offset & 0x1fff/2) + 0x7e000/2)]; // otherwise it accesses the final 8k of the image |
| 931 | return m_rom[MD_ADDR((offset + (m_bank_addr * 0x20000)/2))]; |
| 932 | return m_rom[MD_ADDR(((offset & 0x1fff/2) + 0x7e000/2))]; // otherwise it accesses the final 8k of the image |
| 933 | 933 | } |
| 934 | 934 | |
| 935 | 935 | WRITE16_MEMBER(md_rom_realtec_device::write) |