diff options
Diffstat (limited to 'src/mame/drivers/gladiatr.cpp')
-rw-r--r-- | src/mame/drivers/gladiatr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/gladiatr.cpp b/src/mame/drivers/gladiatr.cpp index 19c968f1889..54a46c9b2c2 100644 --- a/src/mame/drivers/gladiatr.cpp +++ b/src/mame/drivers/gladiatr.cpp @@ -1028,18 +1028,18 @@ MACHINE_CONFIG_START(gladiatr_state::gladiatr) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(INPUTLINE("sub", INPUT_LINE_RESET)) // shadowed by aforementioned hack MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, gladiatr_state, flipscreen_w)) - MCFG_DEVICE_ADD("cctl", I8741, 12_MHz_XTAL/2) /* verified on pcb */ - MCFG_MCS48_PORT_T0_IN_CB(IOPORT("COINS")) MCFG_DEVCB_RSHIFT(3) - MCFG_MCS48_PORT_T1_IN_CB(IOPORT("COINS")) MCFG_DEVCB_RSHIFT(2) - MCFG_MCS48_PORT_P1_IN_CB(READ8(*this, gladiatr_state, cctl_p1_r)) - MCFG_MCS48_PORT_P2_IN_CB(READ8(*this, gladiatr_state, cctl_p2_r)) - - MCFG_DEVICE_ADD("ccpu", I8741, 12_MHz_XTAL/2) /* verified on pcb */ - MCFG_MCS48_PORT_P1_IN_CB(IOPORT("IN0")) - MCFG_MCS48_PORT_P2_IN_CB(IOPORT("IN1")) - MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, gladiatr_state, ccpu_p2_w)) - MCFG_MCS48_PORT_T0_IN_CB(IOPORT("COINS")) MCFG_DEVCB_RSHIFT(1) - MCFG_MCS48_PORT_T1_IN_CB(IOPORT("COINS")) MCFG_DEVCB_RSHIFT(0) + I8741(config, m_cctl, 12_MHz_XTAL/2); /* verified on pcb */ + m_cctl->t0_in_cb().set_ioport("COINS").bit(3); + m_cctl->t1_in_cb().set_ioport("COINS").bit(2); + m_cctl->p1_in_cb().set(FUNC(gladiatr_state::cctl_p1_r)); + m_cctl->p2_in_cb().set(FUNC(gladiatr_state::cctl_p2_r)); + + I8741(config, m_ccpu, 12_MHz_XTAL/2); /* verified on pcb */ + m_ccpu->p1_in_cb().set_ioport("IN0"); + m_ccpu->p2_in_cb().set_ioport("IN1"); + m_ccpu->p2_out_cb().set(FUNC(gladiatr_state::ccpu_p2_w)); + m_ccpu->t0_in_cb().set_ioport("COINS").bit(1); + m_ccpu->t1_in_cb().set_ioport("COINS").bit(0); MCFG_DEVICE_ADD("ucpu", I8741, 12_MHz_XTAL/2) /* verified on pcb */ MCFG_MCS48_PORT_P1_IN_CB(READ8(*this, gladiatr_state, ucpu_p1_r)) |