summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/h89.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/h89.cpp')
-rw-r--r--src/mame/drivers/h89.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/h89.cpp b/src/mame/drivers/h89.cpp
index 6dd41e6938c..becea35114b 100644
--- a/src/mame/drivers/h89.cpp
+++ b/src/mame/drivers/h89.cpp
@@ -185,21 +185,22 @@ static DEVICE_INPUT_DEFAULTS_START( terminal )
DEVICE_INPUT_DEFAULTS_END
-MACHINE_CONFIG_START(h89_state::h89)
+void h89_state::h89(machine_config & config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu",Z80, XTAL(12'288'000) / 6)
- MCFG_DEVICE_PROGRAM_MAP(h89_mem)
- MCFG_DEVICE_IO_MAP(h89_io)
+ Z80(config, m_maincpu, XTAL(12'288'000) / 6);
+ m_maincpu->set_addrmap(AS_PROGRAM, &h89_state::h89_mem);
+ m_maincpu->set_addrmap(AS_IO, &h89_state::h89_io);
ins8250_device &uart(INS8250(config, "ins8250", XTAL(1'843'200)));
uart.out_tx_callback().set(RS232_TAG, FUNC(rs232_port_device::write_txd));
- MCFG_DEVICE_ADD(RS232_TAG, RS232_PORT, default_rs232_devices, "terminal")
- MCFG_RS232_RXD_HANDLER(WRITELINE("ins8250", ins8250_uart_device, rx_w))
- MCFG_SLOT_OPTION_DEVICE_INPUT_DEFAULTS("terminal", terminal)
+ rs232_port_device &rs232(RS232_PORT(config, RS232_TAG, default_rs232_devices, "terminal"));
+ rs232.rxd_handler().set("ins8250", FUNC(ins8250_uart_device::rx_w));
+ rs232.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(terminal));
- MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer", h89_state, h89_irq_timer, attotime::from_hz(100))
-MACHINE_CONFIG_END
+ TIMER(config, "irq_timer", 0).configure_periodic(timer_device::expired_delegate(FUNC(h89_state::h89_irq_timer), this), attotime::from_hz(100));
+}
/* ROM definition */
ROM_START( h89 )