diff options
Diffstat (limited to 'src/devices/bus/pc_kbd/msnat.cpp')
-rw-r--r-- | src/devices/bus/pc_kbd/msnat.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/pc_kbd/msnat.cpp b/src/devices/bus/pc_kbd/msnat.cpp index 2adde2d83c1..67919240d72 100644 --- a/src/devices/bus/pc_kbd/msnat.cpp +++ b/src/devices/bus/pc_kbd/msnat.cpp @@ -12,7 +12,6 @@ TODO: #include "emu.h" #include "msnat.h" -#include "cpu/mcs51/mcs51.h" /*************************************************************************** @@ -245,15 +244,16 @@ void pc_kbd_microsoft_natural_device::device_reset() // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(pc_kbd_microsoft_natural_device::device_add_mconfig) - MCFG_DEVICE_ADD("ms_natrl_cpu", I8051, XTAL(6'000'000)) - MCFG_MCS51_PORT_P0_IN_CB(READ8(*this, pc_kbd_microsoft_natural_device, p0_read)) - MCFG_MCS51_PORT_P0_OUT_CB(WRITE8(*this, pc_kbd_microsoft_natural_device, p0_write)) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, pc_kbd_microsoft_natural_device, p1_write)) - MCFG_MCS51_PORT_P2_OUT_CB(WRITE8(*this, pc_kbd_microsoft_natural_device, p2_write)) - MCFG_MCS51_PORT_P3_IN_CB(READ8(*this, pc_kbd_microsoft_natural_device, p3_read)) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, pc_kbd_microsoft_natural_device, p3_write)) -MACHINE_CONFIG_END +void pc_kbd_microsoft_natural_device::device_add_mconfig(machine_config &config) +{ + I8051(config, m_cpu, XTAL(6'000'000)); + m_cpu->port_in_cb<0>().set(FUNC(pc_kbd_microsoft_natural_device::p0_read)); + m_cpu->port_out_cb<0>().set(FUNC(pc_kbd_microsoft_natural_device::p0_write)); + m_cpu->port_out_cb<1>().set(FUNC(pc_kbd_microsoft_natural_device::p1_write)); + m_cpu->port_out_cb<2>().set(FUNC(pc_kbd_microsoft_natural_device::p2_write)); + m_cpu->port_in_cb<3>().set(FUNC(pc_kbd_microsoft_natural_device::p3_read)); + m_cpu->port_out_cb<3>().set(FUNC(pc_kbd_microsoft_natural_device::p3_write)); +} ioport_constructor pc_kbd_microsoft_natural_device::device_input_ports() const |