From 0d6bdffa83ecc7ac334a9c138b67d95efe0e1255 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 11 Nov 2016 03:19:39 +0100 Subject: [PATCH] The "sector ID mismatch" condition reported by the READ TRACK command is now taken into account when return the status at the end of the command. --- src/fdc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fdc.c b/src/fdc.c index a25bf8a7e..751dcd380 100644 --- a/src/fdc.c +++ b/src/fdc.c @@ -1240,6 +1240,10 @@ void fdc_poll_common_finish(int compare, int st5) fdc.res[5] |= 0x20; fdc.res[6] |= 0x20; } + if (fdc.satisfying_sectors & 4) + { + fdc.res[5] |= 0x04; + } } fdc.res[7]=fdc.rw_track; fdc.res[8]=fdc.head;