summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/aa310.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/aa310.cpp')
-rw-r--r--src/mame/drivers/aa310.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/aa310.cpp b/src/mame/drivers/aa310.cpp
index 0e88415e344..408e258ed4d 100644
--- a/src/mame/drivers/aa310.cpp
+++ b/src/mame/drivers/aa310.cpp
@@ -426,10 +426,10 @@ MACHINE_CONFIG_START(aa310_state::aa310)
RAM(config, m_ram).set_default_size("1M");
- MCFG_DEVICE_ADD("fdc", WD1772, 8000000 / 1) // TODO: frequency
- MCFG_WD_FDC_DISABLE_MOTOR_CONTROL
- MCFG_WD_FDC_INTRQ_CALLBACK(WRITELINE(*this, aa310_state, aa310_wd177x_intrq_w))
- MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(*this, aa310_state, aa310_wd177x_drq_w))
+ wd1772_device& fdc(WD1772(config, "fdc", 8000000 / 1)); // TODO: frequency
+ fdc.set_disable_motor_control(true);
+ fdc.intrq_wr_callback().set(FUNC(aa310_state::aa310_wd177x_intrq_w));
+ fdc.drq_wr_callback().set(FUNC(aa310_state::aa310_wd177x_drq_w));
MCFG_FLOPPY_DRIVE_ADD("fdc:0", aa310_floppies, "35dd", aa310_state::floppy_formats)
MCFG_FLOPPY_DRIVE_SOUND(true)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", aa310_floppies, nullptr, aa310_state::floppy_formats) // rarely had 2nd FDD installed, space was used for HDD