summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/mycom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/mycom.c')
-rw-r--r--src/mess/drivers/mycom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/drivers/mycom.c b/src/mess/drivers/mycom.c
index e369801f282..79aa4eff55e 100644
--- a/src/mess/drivers/mycom.c
+++ b/src/mess/drivers/mycom.c
@@ -478,7 +478,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(mycom_state::mycom_kbd)
UINT8 x, y, scancode = 0;
UINT16 pressed[9];
char kbdrow[3];
- UINT8 modifiers = machine().root_device().ioport("XX")->read();
+ UINT8 modifiers = ioport("XX")->read();
UINT8 shift_pressed = (modifiers & 2) >> 1;
m_keyb_press_flag = 0;
@@ -486,7 +486,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(mycom_state::mycom_kbd)
for (x = 0; x < 9; x++)
{
sprintf(kbdrow,"X%d",x);
- pressed[x] = (machine().root_device().ioport(kbdrow)->read());
+ pressed[x] = (ioport(kbdrow)->read());
}
/* find what has changed */