summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ht68k.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ht68k.cpp')
-rw-r--r--src/mame/drivers/ht68k.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mame/drivers/ht68k.cpp b/src/mame/drivers/ht68k.cpp
index 05c91f9eace..6f5a8f64a8b 100644
--- a/src/mame/drivers/ht68k.cpp
+++ b/src/mame/drivers/ht68k.cpp
@@ -130,32 +130,31 @@ static void ht68k_floppies(device_slot_interface &device)
}
-void ht68k_state::ht68k(machine_config &config)
-{
+MACHINE_CONFIG_START(ht68k_state::ht68k)
/* basic machine hardware */
- M68000(config, m_maincpu, 8_MHz_XTAL);
- m_maincpu->set_addrmap(AS_PROGRAM, &ht68k_state::ht68k_mem);
+ MCFG_DEVICE_ADD("maincpu", M68000, 8_MHz_XTAL)
+ MCFG_DEVICE_PROGRAM_MAP(ht68k_mem)
/* video hardware */
- MC68681(config, m_duart, 8_MHz_XTAL / 2);
- m_duart->set_clocks(500000, 500000, 1000000, 1000000);
- m_duart->irq_cb().set(FUNC(ht68k_state::duart_irq_handler));
- m_duart->a_tx_cb().set("rs232", FUNC(rs232_port_device::write_txd));
- m_duart->b_tx_cb().set(FUNC(ht68k_state::duart_txb));
- m_duart->outport_cb().set(FUNC(ht68k_state::duart_output));
+ MCFG_DEVICE_ADD("duart68681", MC68681, 8_MHz_XTAL / 2)
+ MCFG_MC68681_SET_EXTERNAL_CLOCKS(500000, 500000, 1000000, 1000000)
+ MCFG_MC68681_IRQ_CALLBACK(WRITELINE(*this, ht68k_state, duart_irq_handler))
+ MCFG_MC68681_A_TX_CALLBACK(WRITELINE("rs232", rs232_port_device, write_txd))
+ MCFG_MC68681_B_TX_CALLBACK(WRITELINE(*this, ht68k_state, duart_txb))
+ MCFG_MC68681_OUTPORT_CALLBACK(WRITE8(*this, ht68k_state, duart_output))
rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, "terminal"));
rs232.rxd_handler().set(m_duart, FUNC(mc68681_device::rx_a_w));
WD1770(config, m_fdc, 8_MHz_XTAL);
- FLOPPY_CONNECTOR(config, "wd1770:0", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, "wd1770:1", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, "wd1770:2", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, "wd1770:3", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats);
+ MCFG_FLOPPY_DRIVE_ADD("wd1770:0", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("wd1770:1", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("wd1770:2", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("wd1770:3", ht68k_floppies, "525dd", floppy_image_device::default_floppy_formats)
- SOFTWARE_LIST(config, "flop525_list").set_original("ht68k");
-}
+ MCFG_SOFTWARE_LIST_ADD("flop525_list", "ht68k")
+MACHINE_CONFIG_END
/* ROM definition */
ROM_START( ht68k )