diff options
Diffstat (limited to 'src/devices/bus/odyssey2/rom.cpp')
-rw-r--r-- | src/devices/bus/odyssey2/rom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/odyssey2/rom.cpp b/src/devices/bus/odyssey2/rom.cpp index 12f8fa9b128..cd8d15b15bc 100644 --- a/src/devices/bus/odyssey2/rom.cpp +++ b/src/devices/bus/odyssey2/rom.cpp @@ -28,7 +28,7 @@ void o2_rom_device::device_start() void o2_rom_device::cart_init() { - m_cart_mask = (1 << (31 - count_leading_zeros(m_rom.bytes()))) - 1; + m_cart_mask = (1 << (31 - count_leading_zeros(m_rom_size))) - 1; } @@ -39,5 +39,5 @@ void o2_rom_device::cart_init() u8 o2_rom_device::read_rom04(offs_t offset) { offset = (offset + m_bank * 0x800) & m_cart_mask; - return (offset < m_rom.bytes()) ? m_rom[offset] : 0xff; + return (offset < m_rom_size) ? m_rom[offset] : 0xff; } |