summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nb1413m3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/nb1413m3.cpp')
-rw-r--r--src/mame/machine/nb1413m3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/nb1413m3.cpp b/src/mame/machine/nb1413m3.cpp
index c67a13f6ce2..00f99cd24ac 100644
--- a/src/mame/machine/nb1413m3.cpp
+++ b/src/mame/machine/nb1413m3.cpp
@@ -202,8 +202,8 @@ uint8_t nb1413m3_device::sndrom_r(address_space &space, offs_t offset)
{
int rombank;
- /* get top 8 bits of the I/O port address */
- offset = (offset << 8) | (space.device().state().state_int(Z80_BC) >> 8);
+ // get top 8 bits of the I/O port address (FIXME: do this the correct way with 16-bit addressing)
+ offset = (offset << 8) | (downcast<z80_device &>(space.device()).state_int(Z80_BC) >> 8);
switch (m_nb1413m3_type)
{