summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michael Zapf <github@mizapf.de>2020-03-21 17:22:00 +0100
committer Michael Zapf <github@mizapf.de>2020-03-21 17:24:45 +0100
commitd5dc65958d6245144fccf654900ebd48aeff6c95 (patch)
treef395d4acac6a9cdb78503ae90bd64b8ce55d3926
parenta7dfc7d96d9c590cb28694b108c8b394237d47a1 (diff)
wd_fdc: Changed spindown delay to 9 revs according to specs, added MON clearing directly in master reset.
-rw-r--r--src/devices/machine/wd_fdc.cpp6
1 files changed, 5 insertions, 1 deletions
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)