summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/softbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/softbox.cpp')
-rw-r--r--src/mame/drivers/softbox.cpp35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/mame/drivers/softbox.cpp b/src/mame/drivers/softbox.cpp
index 634bb426a93..699130f946d 100644
--- a/src/mame/drivers/softbox.cpp
+++ b/src/mame/drivers/softbox.cpp
@@ -355,12 +355,15 @@ void softbox_state::ieee488_ifc(int state)
// MACHINE CONFIGURATION
//**************************************************************************
-void softbox_state::softbox(machine_config &config)
-{
+//-------------------------------------------------
+// MACHINE_CONFIG( softbox )
+//-------------------------------------------------
+
+MACHINE_CONFIG_START(softbox_state::softbox)
// basic machine hardware
- Z80(config, m_maincpu, XTAL(8'000'000)/2);
- m_maincpu->set_addrmap(AS_PROGRAM, &softbox_state::softbox_mem);
- m_maincpu->set_addrmap(AS_IO, &softbox_state::softbox_io);
+ MCFG_DEVICE_ADD(Z80_TAG, Z80, XTAL(8'000'000)/2)
+ MCFG_DEVICE_PROGRAM_MAP(softbox_mem)
+ MCFG_DEVICE_IO_MAP(softbox_io)
// devices
i8251_device &i8251(I8251(config, I8251_TAG, 0));
@@ -389,19 +392,23 @@ void softbox_state::softbox(machine_config &config)
dbrg.fr_handler().set(I8251_TAG, FUNC(i8251_device::write_rxc));
dbrg.ft_handler().set(I8251_TAG, FUNC(i8251_device::write_txc));
- ieee488_device::add_cbm_devices(config, "c8050");
+ MCFG_CBM_IEEE488_ADD("c8050")
- CORVUS_HDC(config, m_hdc, 0);
- HARDDISK(config, "harddisk1", "corvus_hdd");
- HARDDISK(config, "harddisk2", "corvus_hdd");
- HARDDISK(config, "harddisk3", "corvus_hdd");
- HARDDISK(config, "harddisk4", "corvus_hdd");
+ MCFG_DEVICE_ADD(CORVUS_HDC_TAG, CORVUS_HDC, 0)
+ MCFG_HARDDISK_ADD("harddisk1")
+ MCFG_HARDDISK_INTERFACE("corvus_hdd")
+ MCFG_HARDDISK_ADD("harddisk2")
+ MCFG_HARDDISK_INTERFACE("corvus_hdd")
+ MCFG_HARDDISK_ADD("harddisk3")
+ MCFG_HARDDISK_INTERFACE("corvus_hdd")
+ MCFG_HARDDISK_ADD("harddisk4")
+ MCFG_HARDDISK_INTERFACE("corvus_hdd")
- imi7000_bus_device::add_config(config, "imi5000h", nullptr, nullptr, nullptr);
+ MCFG_IMI7000_BUS_ADD("imi5000h", nullptr, nullptr, nullptr)
// software lists
- SOFTWARE_LIST(config, "flop_list").set_original("softbox");
-}
+ MCFG_SOFTWARE_LIST_ADD("flop_list", "softbox")
+MACHINE_CONFIG_END