summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/x1twin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/x1twin.cpp')
-rw-r--r--src/mame/drivers/x1twin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/x1twin.cpp b/src/mame/drivers/x1twin.cpp
index 9967fa24bcd..b62cad73988 100644
--- a/src/mame/drivers/x1twin.cpp
+++ b/src/mame/drivers/x1twin.cpp
@@ -476,9 +476,9 @@ MACHINE_CONFIG_START(x1twin_state::x1twin)
MCFG_VIDEO_START_OVERRIDE(x1twin_state,x1)
- MCFG_DEVICE_ADD("fdc", MB8877, MAIN_CLOCK / 16)
- // TODO: guesswork, try to implicitily start the motor
- MCFG_WD_FDC_HLD_CALLBACK(WRITELINE(*this, x1_state, hdl_w))
+ MB8877(config, m_fdc, MAIN_CLOCK / 16);
+ // TODO: guesswork, try to implicitly start the motor
+ m_fdc->hld_wr_callback().set(FUNC(x1_state::hdl_w));
MCFG_FLOPPY_DRIVE_ADD("fdc:0", x1_floppies, "dd", x1_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", x1_floppies, "dd", x1_state::floppy_formats)