From 363b5ab2545dae31bb9cb1053afb57fa38ea29ff Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 29 Sep 2019 09:23:02 +0200 Subject: [PATCH] The IBM AT MFM controller no longer incorrectly issues a wrong cylinder error when it is not supposed to, fixes #414. --- src/disk/hdc_st506_at.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/disk/hdc_st506_at.c b/src/disk/hdc_st506_at.c index 5db99b806..cde098d2c 100644 --- a/src/disk/hdc_st506_at.c +++ b/src/disk/hdc_st506_at.c @@ -12,7 +12,7 @@ * based design. Most cards were WD1003-WA2 or -WAH, where the * -WA2 cards had a floppy controller as well (to save space.) * - * Version: @(#)hdc_st506_at.c 1.0.19 2019/03/03 + * Version: @(#)hdc_st506_at.c 1.0.20 2019/09/29 * * Authors: Sarah Walker, * Fred N. van Kempen, @@ -180,10 +180,14 @@ get_sector(mfm_t *mfm, off64_t *addr) { drive_t *drive = &mfm->drives[mfm->drvsel]; +/* FIXME: See if this is even needed - if the code is present, IBM AT + diagnostics v2.07 will error with: ERROR 152 - SYSTEM BOARD. */ +#ifdef FIXME if (drive->curcyl != mfm->cylinder) { st506_at_log("WD1003(%d) sector: wrong cylinder\n"); return(1); } +#endif if (mfm->head > drive->cfg_hpc) { st506_at_log("WD1003(%d) get_sector: past end of configured heads\n",