summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/astrocde/rom.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-11-26 10:37:58 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2014-11-26 10:37:58 +0100
commitebeaa953a3a6ae98842b4a169bc95e5f3c673d8c (patch)
tree41959790c00308fc3cac9c71176709f53683151d /src/emu/bus/astrocde/rom.c
parent18b8ce2f9467ae23672cea11f4a3fc5e42e24b9c (diff)
Cleanups and version bumpmame0156
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;
}
-