diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2013-04-14 10:46:03 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2013-04-14 10:46:03 +0000 |
commit | bd4514adde890b79733b63ea5bf11a5f23daf006 (patch) | |
tree | 848d70080af70e0d548658e54cb535f3f42f61bf /src/mess/machine/coco.c | |
parent | 629c98f86780ce12591ff5481dec529bccf36e8d (diff) |
Removal of machine().root_device() where appropriate (nw)
Diffstat (limited to 'src/mess/machine/coco.c')
-rw-r--r-- | src/mess/machine/coco.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mess/machine/coco.c b/src/mess/machine/coco.c index 9e424012a5e..2942a8e9916 100644 --- a/src/mess/machine/coco.c +++ b/src/mess/machine/coco.c @@ -101,11 +101,11 @@ coco_state::coco_state(const machine_config &mconfig, device_type type, const ch void coco_state::analog_port_start(analog_input_t *analog, const char *rx_tag, const char *ry_tag, const char *lx_tag, const char *ly_tag, const char *buttons_tag) { - analog->m_input[0][0] = machine().root_device().ioport(rx_tag); - analog->m_input[0][1] = machine().root_device().ioport(ry_tag); - analog->m_input[1][0] = machine().root_device().ioport(lx_tag); - analog->m_input[1][1] = machine().root_device().ioport(ly_tag); - analog->m_buttons = machine().root_device().ioport(buttons_tag); + analog->m_input[0][0] = ioport(rx_tag); + analog->m_input[0][1] = ioport(ry_tag); + analog->m_input[1][0] = ioport(lx_tag); + analog->m_input[1][1] = ioport(ly_tag); + analog->m_buttons = ioport(buttons_tag); } @@ -124,7 +124,7 @@ void coco_state::device_start() { char name[32]; snprintf(name, sizeof(name) / sizeof(name[0]), "row%d", i); - m_keyboard[i] = machine().root_device().ioport(name); + m_keyboard[i] = ioport(name); } /* look up analog ports */ @@ -136,8 +136,8 @@ void coco_state::device_start() DIECOM_LIGHTGUN_LX_TAG, DIECOM_LIGHTGUN_LY_TAG, DIECOM_LIGHTGUN_BUTTONS_TAG); /* look up miscellaneous controls */ - m_joystick_type_control = machine().root_device().ioport(CTRL_SEL_TAG); - m_joystick_hires_control = machine().root_device().ioport(HIRES_INTF_TAG); + m_joystick_type_control = ioport(CTRL_SEL_TAG); + m_joystick_hires_control = ioport(HIRES_INTF_TAG); /* timers */ m_hiresjoy_transition_timer[0] = timer_alloc(TIMER_HIRES_JOYSTICK_X); |