summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/tc009xlvc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/tc009xlvc.h')
-rw-r--r--src/devices/machine/tc009xlvc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/tc009xlvc.h b/src/devices/machine/tc009xlvc.h
index 5654d1a6f8b..367e47eaadd 100644
--- a/src/devices/machine/tc009xlvc.h
+++ b/src/devices/machine/tc009xlvc.h
@@ -27,7 +27,7 @@ public:
void set_tilemap_yoffs(int yoffs, int flipped_yoffs) { m_tilemap_yoffs = yoffs; m_tilemap_flipped_yoffs = flipped_yoffs; }
// memory handlers
- u8 rom_r(offs_t offset) { return m_rom[offset & m_rom.mask()]; }
+ u8 rom_r(offs_t offset) { return m_rom[offset & (m_rom.length() - 1)]; }
// internal functions
u8 vregs_r(offs_t offset) { return m_vregs[offset]; }