summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pc_kbd/pcxt83.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pc_kbd/pcxt83.cpp')
-rw-r--r--src/devices/bus/pc_kbd/pcxt83.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/devices/bus/pc_kbd/pcxt83.cpp b/src/devices/bus/pc_kbd/pcxt83.cpp
index 4c358cd9cff..366ef89332f 100644
--- a/src/devices/bus/pc_kbd/pcxt83.cpp
+++ b/src/devices/bus/pc_kbd/pcxt83.cpp
@@ -72,15 +72,16 @@ const tiny_rom_entry *ibm_pc_xt_83_keyboard_device::device_rom_region() const
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(ibm_pc_xt_83_keyboard_device::device_add_mconfig)
- MCFG_DEVICE_ADD(I8048_TAG, I8048, MCS48_LC_CLOCK(IND_U(47), CAP_P(20.7)))
- MCFG_MCS48_PORT_BUS_IN_CB(READ8(*this, ibm_pc_xt_83_keyboard_device, bus_r))
- MCFG_MCS48_PORT_BUS_OUT_CB(WRITE8(*this, ibm_pc_xt_83_keyboard_device, bus_w))
- MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, ibm_pc_xt_83_keyboard_device, p1_w))
- MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, ibm_pc_xt_83_keyboard_device, p2_w))
- MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, ibm_pc_xt_83_keyboard_device, t0_r))
- MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, ibm_pc_xt_83_keyboard_device, t1_r))
-MACHINE_CONFIG_END
+void ibm_pc_xt_83_keyboard_device::device_add_mconfig(machine_config &config)
+{
+ I8048(config, m_maincpu, MCS48_LC_CLOCK(IND_U(47), CAP_P(20.7)));
+ m_maincpu->bus_in_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::bus_r));
+ m_maincpu->bus_out_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::bus_w));
+ m_maincpu->p1_out_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::p1_w));
+ m_maincpu->p2_out_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::p2_w));
+ m_maincpu->t0_in_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::t0_r));
+ m_maincpu->t1_in_cb().set(FUNC(ibm_pc_xt_83_keyboard_device::t1_r));
+}
//-------------------------------------------------