From d5dc65958d6245144fccf654900ebd48aeff6c95 Mon Sep 17 00:00:00 2001 From: Michael Zapf Date: Sat, 21 Mar 2020 17:22:00 +0100 Subject: wd_fdc: Changed spindown delay to 9 revs according to specs, added MON clearing directly in master reset. --- src/devices/machine/wd_fdc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/devices/machine/wd_fdc.cpp b/src/devices/machine/wd_fdc.cpp index 516bd47f2e2..d348c0e2ec5 100644 --- a/src/devices/machine/wd_fdc.cpp +++ b/src/devices/machine/wd_fdc.cpp @@ -192,6 +192,9 @@ WRITE_LINE_MEMBER(wd_fdc_device_base::mr_w) drq_cb(drq); } hld = false; + + mon_cb(1); // Clear the MON* line + intrq_cond = 0; live_abort(); } else if(state && !mr) { @@ -1340,7 +1343,8 @@ void wd_fdc_device_base::index_callback(floppy_image_device *floppy, int state) case IDLE: if(motor_control || head_control) { motor_timeout ++; - if(motor_control && motor_timeout >= 5) { + // Spindown delay is 9 revs according to spec + if(motor_control && motor_timeout >= 8) { status &= ~S_MON; mon_cb(1); if(floppy && !disable_motor_control) -- cgit v1.2.3