Increased maximum ESDI sectors 99 and fixed the cylinders truncation in config.c.

This commit is contained in:
OBattler
2019-11-19 07:48:49 +01:00
parent 4d39da9cfe
commit 3cc320d2b2
2 changed files with 13 additions and 8 deletions

View File

@@ -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, <mgrca8@gmail.com>
@@ -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;

View File

@@ -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, <mgrca8@gmail.com>
* David Hrdlička, <hrdlickadavid@outlook.com>
@@ -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;