diff options
Diffstat (limited to 'src/devices/bus/odyssey2/rally.cpp')
-rw-r--r-- | src/devices/bus/odyssey2/rally.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/odyssey2/rally.cpp b/src/devices/bus/odyssey2/rally.cpp index 42dcdc0b26f..00205028fa6 100644 --- a/src/devices/bus/odyssey2/rally.cpp +++ b/src/devices/bus/odyssey2/rally.cpp @@ -39,7 +39,7 @@ void o2_rally_device::device_start() void o2_rally_device::cart_init() { - u32 size = m_rom.bytes(); + u32 size = m_rom_size; if (size & (size - 1) || size < 0x800) fatalerror("o2_rally_device: ROM size must be 2^x\n"); } @@ -53,7 +53,7 @@ u8 o2_rally_device::read_rom04(offs_t offset) { // P10 enables latch output u8 bank = (m_control & 1) ? ~0 : m_bank; - return m_rom[(offset + bank * 0x800) & (m_rom.bytes() - 1)]; + return m_rom[(offset + bank * 0x800) & (m_rom_size - 1)]; } void o2_rally_device::io_write(offs_t offset, u8 data) |