summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/adamnet/fdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/adamnet/fdc.cpp')
-rw-r--r--src/devices/bus/adamnet/fdc.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/devices/bus/adamnet/fdc.cpp b/src/devices/bus/adamnet/fdc.cpp
index 3cc5d8ea1bf..b0e5315b277 100644
--- a/src/devices/bus/adamnet/fdc.cpp
+++ b/src/devices/bus/adamnet/fdc.cpp
@@ -127,16 +127,17 @@ static void adam_fdc_floppies(device_slot_interface &device)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(adam_fdc_device::device_add_mconfig)
- MCFG_DEVICE_ADD(M6801_TAG, M6801, 4_MHz_XTAL)
- MCFG_DEVICE_PROGRAM_MAP(adam_fdc_mem)
- MCFG_DEVICE_IO_MAP(adam_fdc_io)
+void adam_fdc_device::device_add_mconfig(machine_config &config)
+{
+ M6801(config, m_maincpu, 4_MHz_XTAL),
+ m_maincpu->set_addrmap(AS_PROGRAM, &adam_fdc_device::adam_fdc_mem);
+ m_maincpu->set_addrmap(AS_IO, &adam_fdc_device::adam_fdc_io);
- MCFG_DEVICE_ADD(WD2793_TAG, WD2793, 4_MHz_XTAL / 4)
- MCFG_WD_FDC_INTRQ_CALLBACK(INPUTLINE(M6801_TAG, INPUT_LINE_NMI))
+ WD2793(config, m_fdc, 4_MHz_XTAL / 4);
+ m_fdc->intrq_wr_callback().set_inputline(m_maincpu, INPUT_LINE_NMI);
- MCFG_FLOPPY_DRIVE_ADD(WD2793_TAG":0", adam_fdc_floppies, "525ssdd", adam_fdc_device::floppy_formats)
-MACHINE_CONFIG_END
+ FLOPPY_CONNECTOR(config, m_connector, adam_fdc_floppies, "525ssdd", adam_fdc_device::floppy_formats);
+}
//-------------------------------------------------