summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/astrocde/rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/astrocde/rom.c')
-rw-r--r--src/emu/bus/astrocde/rom.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/emu/bus/astrocde/rom.c b/src/emu/bus/astrocde/rom.c
index 3f76b024df0..25ef8123666 100644
--- a/src/emu/bus/astrocde/rom.c
+++ b/src/emu/bus/astrocde/rom.c
@@ -80,21 +80,20 @@ READ8_MEMBER(astrocade_rom_device::read_rom)
READ8_MEMBER(astrocade_rom_256k_device::read_rom)
{
- if (offset < 0x1000) // 0x2000-0x2fff
+ if (offset < 0x1000) // 0x2000-0x2fff
return m_rom[offset + 0x1000 * 0x3f];
- else if (offset < 0x1fc0) // 0x3000-0x3fbf
+ else if (offset < 0x1fc0) // 0x3000-0x3fbf
return m_rom[(offset & 0xfff) + (0x1000 * m_base_bank)];
- else // 0x3fc0-0x3fff
+ else // 0x3fc0-0x3fff
return m_base_bank = offset & 0x3f;
}
READ8_MEMBER(astrocade_rom_512k_device::read_rom)
{
- if (offset < 0x1000) // 0x2000-0x2fff
+ if (offset < 0x1000) // 0x2000-0x2fff
return m_rom[offset + 0x1000 * 0x7f];
- else if (offset < 0x1f80) // 0x3000-0x3fbf
+ else if (offset < 0x1f80) // 0x3000-0x3fbf
return m_rom[(offset & 0xfff) + (0x1000 * m_base_bank)];
- else // 0x3fc0-0x3fff
+ else // 0x3fc0-0x3fff
return m_base_bank = offset & 0x7f;
}
-