diff options
Diffstat (limited to 'src/mame/drivers/cp1.cpp')
-rw-r--r-- | src/mame/drivers/cp1.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/cp1.cpp b/src/mame/drivers/cp1.cpp index b7d4d361257..bc0b36d1508 100644 --- a/src/mame/drivers/cp1.cpp +++ b/src/mame/drivers/cp1.cpp @@ -266,22 +266,22 @@ QUICKLOAD_LOAD_MEMBER( cp1_state, quickload ) MACHINE_CONFIG_START(cp1_state::cp1) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", I8049, XTAL(6'000'000)) - MCFG_CPU_IO_MAP(cp1_io) - MCFG_MCS48_PORT_P1_IN_CB(READ8(cp1_state, port1_r)) - MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(cp1_state, port1_w)) - MCFG_MCS48_PORT_P2_IN_CB(READ8(cp1_state, port2_r)) - MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(cp1_state, port2_w)) + MCFG_DEVICE_ADD("maincpu", I8049, XTAL(6'000'000)) + MCFG_DEVICE_IO_MAP(cp1_io) + MCFG_MCS48_PORT_P1_IN_CB(READ8(*this, cp1_state, port1_r)) + MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, cp1_state, port1_w)) + MCFG_MCS48_PORT_P2_IN_CB(READ8(*this, cp1_state, port2_r)) + MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, cp1_state, port2_w)) MCFG_MCS48_PORT_BUS_IN_CB(LOGGER("getbus")) MCFG_MCS48_PORT_BUS_OUT_CB(LOGGER("putbus")) MCFG_MCS48_PORT_T0_IN_CB(LOGGER("t0_r")) MCFG_MCS48_PORT_T1_IN_CB(LOGGER("t1_r")) MCFG_DEVICE_ADD("i8155", I8155, 0) - MCFG_I8155_OUT_PORTA_CB(WRITE8(cp1_state, i8155_porta_w)) - MCFG_I8155_IN_PORTB_CB(READ8(cp1_state, i8155_portb_r)) - MCFG_I8155_OUT_PORTB_CB(WRITE8(cp1_state, i8155_portb_w)) - MCFG_I8155_OUT_PORTC_CB(WRITE8(cp1_state, i8155_portc_w)) + MCFG_I8155_OUT_PORTA_CB(WRITE8(*this, cp1_state, i8155_porta_w)) + MCFG_I8155_IN_PORTB_CB(READ8(*this, cp1_state, i8155_portb_r)) + MCFG_I8155_OUT_PORTB_CB(WRITE8(*this, cp1_state, i8155_portb_w)) + MCFG_I8155_OUT_PORTC_CB(WRITE8(*this, cp1_state, i8155_portc_w)) MCFG_DEVICE_ADD("i8155_cp3", I8155, 0) |