summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/interpro/keyboard/lle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/interpro/keyboard/lle.cpp')
-rw-r--r--src/devices/bus/interpro/keyboard/lle.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/devices/bus/interpro/keyboard/lle.cpp b/src/devices/bus/interpro/keyboard/lle.cpp
index bdeb185ebe8..dab60a49768 100644
--- a/src/devices/bus/interpro/keyboard/lle.cpp
+++ b/src/devices/bus/interpro/keyboard/lle.cpp
@@ -432,22 +432,23 @@ lle_device_base::lle_device_base(machine_config const &mconfig, device_type type
, m_leds(*this, "led_%u", 0U)
{
}
-MACHINE_CONFIG_START(lle_device_base::device_add_mconfig)
- MCFG_DEVICE_ADD("mcu", I8049, 11_MHz_XTAL)
- MCFG_DEVICE_ADDRESS_MAP(AS_IO, io_map)
- MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, lle_device_base, t0_r))
- MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, lle_device_base, t1_r))
- MCFG_MCS48_PORT_P1_OUT_CB(WRITE8(*this, lle_device_base, p1_w))
- MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, lle_device_base, p2_w))
- MCFG_MCS48_PORT_BUS_IN_CB(READ8(*this, lle_device_base, bus_r))
- MCFG_MCS48_PORT_BUS_OUT_CB(WRITE8(*this, lle_device_base, bus_w))
+
+void lle_device_base::device_add_mconfig(machine_config &config)
+{
+ I8049(config, m_mcu, 11_MHz_XTAL);
+ m_mcu->set_addrmap(AS_IO, &lle_device_base::io_map);
+ m_mcu->t0_in_cb().set(FUNC(lle_device_base::t0_r));
+ m_mcu->t1_in_cb().set(FUNC(lle_device_base::t1_r));
+ m_mcu->p1_out_cb().set(FUNC(lle_device_base::p1_w));
+ m_mcu->p2_out_cb().set(FUNC(lle_device_base::p2_w));
+ m_mcu->bus_in_cb().set(FUNC(lle_device_base::bus_r));
+ m_mcu->bus_out_cb().set(FUNC(lle_device_base::bus_w));
ADDRESS_MAP_BANK(config, m_ext).set_map(&lle_device_base::ext_map).set_options(ENDIANNESS_NATIVE, 8, 12, 0x100);
SPEAKER(config, "keyboard").front_center();
- MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND, 0)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "keyboard", 0.25)
-MACHINE_CONFIG_END
+ SPEAKER_SOUND(config, m_speaker, 0).add_route(ALL_OUTPUTS, "keyboard", 0.25);
+}
void lle_device_base::device_start()
{