diff options
Diffstat (limited to 'src/mame/drivers/dec0.cpp')
-rw-r--r-- | src/mame/drivers/dec0.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp index a6d59622aa0..1a12ba87611 100644 --- a/src/mame/drivers/dec0.cpp +++ b/src/mame/drivers/dec0.cpp @@ -334,7 +334,6 @@ Notes: #include "cpu/m68000/m68000.h" #include "cpu/m6502/m6502.h" #include "cpu/z80/z80.h" -#include "cpu/mcs51/mcs51.h" #include "cpu/m6805/m68705.h" #include "sound/2203intf.h" #include "sound/3812intf.h" @@ -1892,12 +1891,12 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(dec0_state::hbarrel) dec0(config); - MCFG_DEVICE_ADD("mcu", I8751, XTAL(8'000'000)) - MCFG_MCS51_PORT_P0_IN_CB(READ8(*this, dec0_state, dec0_mcu_port0_r)) - MCFG_MCS51_PORT_P0_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port0_w)) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port1_w)) - MCFG_MCS51_PORT_P2_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port2_w)) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port3_w)) + i8751_device &mcu(I8751(config, m_mcu, XTAL(8'000'000))); + mcu.port_in_cb<0>().set(FUNC(dec0_state::dec0_mcu_port0_r)); + mcu.port_out_cb<0>().set(FUNC(dec0_state::dec0_mcu_port0_w)); + mcu.port_out_cb<1>().set(FUNC(dec0_state::dec0_mcu_port1_w)); + mcu.port_out_cb<2>().set(FUNC(dec0_state::dec0_mcu_port2_w)); + mcu.port_out_cb<3>().set(FUNC(dec0_state::dec0_mcu_port3_w)); /* video hardware */ MCFG_SCREEN_MODIFY("screen") @@ -1907,12 +1906,12 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(dec0_state::baddudes) dec0(config); - MCFG_DEVICE_ADD("mcu", I8751, XTAL(8'000'000)) - MCFG_MCS51_PORT_P0_IN_CB(READ8(*this, dec0_state, dec0_mcu_port0_r)) - MCFG_MCS51_PORT_P0_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port0_w)) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port1_w)) - MCFG_MCS51_PORT_P2_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port2_w)) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, dec0_state, dec0_mcu_port3_w)) + i8751_device &mcu(I8751(config, m_mcu, XTAL(8'000'000))); + mcu.port_in_cb<0>().set(FUNC(dec0_state::dec0_mcu_port0_r)); + mcu.port_out_cb<0>().set(FUNC(dec0_state::dec0_mcu_port0_w)); + mcu.port_out_cb<1>().set(FUNC(dec0_state::dec0_mcu_port1_w)); + mcu.port_out_cb<2>().set(FUNC(dec0_state::dec0_mcu_port2_w)); + mcu.port_out_cb<3>().set(FUNC(dec0_state::dec0_mcu_port3_w)); /* video hardware */ MCFG_SCREEN_MODIFY("screen") |