From 3cc320d2b20c3a22154d304a6330dca250e3e41b Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 19 Nov 2019 07:48:49 +0100 Subject: [PATCH] Increased maximum ESDI sectors 99 and fixed the cylinders truncation in config.c. --- src/config.c | 9 +++++++-- src/win/win_settings.c | 12 ++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/config.c b/src/config.c index 361458c16..51a5a70d6 100644 --- a/src/config.c +++ b/src/config.c @@ -8,7 +8,7 @@ * * Configuration file handler. * - * Version: @(#)config.c 1.0.63 2019/10/21 + * Version: @(#)config.c 1.0.64 2019/11/19 * * Authors: Sarah Walker, * Miran Grca, @@ -837,13 +837,18 @@ load_hard_disks(void) max_tracks = 1023; break; - case HDD_BUS_ESDI: case HDD_BUS_XTA: max_spt = 63; max_hpc = 16; max_tracks = 1023; break; + case HDD_BUS_ESDI: + max_spt = 99; + max_hpc = 16; + max_tracks = 266305; + break; + case HDD_BUS_IDE: max_spt = 63; max_hpc = 16; diff --git a/src/win/win_settings.c b/src/win/win_settings.c index 480b55163..ed6747d5a 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -8,7 +8,7 @@ * * Windows 86Box Settings dialog handler. * - * Version: @(#)win_settings.c 1.0.61 2019/11/19 + * Version: @(#)win_settings.c 1.0.62 2019/11/19 * * Authors: Miran Grca, * David Hrdlička, @@ -3061,16 +3061,16 @@ hdd_add_file_open_error: max_hpc = 15; max_tracks = 1023; break; - case HDD_BUS_ESDI: - max_spt = 43; /* ESDI drives usually had 32 to 43 sectors per track. */ - max_hpc = 16; - max_tracks = 266305; - break; case HDD_BUS_XTA: max_spt = 63; max_hpc = 16; max_tracks = 1023; break; + case HDD_BUS_ESDI: + max_spt = 99; /* ESDI drives usually had 32 to 43 sectors per track. */ + max_hpc = 16; + max_tracks = 266305; + break; case HDD_BUS_IDE: max_spt = 63; max_hpc = 255;