From a92802b5f45f8bceae71533d098ac8fb29515eb3 Mon Sep 17 00:00:00 2001 From: humply Date: Sun, 20 Jul 2025 10:39:18 +0200 Subject: [PATCH] ao486: Add ATA-1 Identify Drive words 4 and 5 for ao486 BIOS (#1006) --- ide.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ide.cpp b/ide.cpp index 197c72b..5dbfb13 100644 --- a/ide.cpp +++ b/ide.cpp @@ -483,12 +483,12 @@ void ide_img_set(uint32_t drvnum, fileTYPE *f, int cd, int sectors, int heads, i uint16_t identify[256] = { 0x0040, //word 0 - drive->cylinders, //word 1 + drive->cylinders, //word 1 cylinders (used by e.g. ao486) 0x0000, //word 2 reserved - drive->heads, //word 3 - 0x0000, //word 4 obsolete - 0x0000, //word 5 obsolete - drive->spt, //word 6 + drive->heads, //word 3 heads (used by e.g. ao486) + (uint16_t)(512 * drive->spt), //word 4 bytes per track + 512, //word 5 bytes per sector (used by e.g. ao486) + drive->spt, //word 6 sectors per track (used by e.g. ao486) 0x0000, //word 7 vendor specific 0x0000, //word 8 vendor specific 0x0000, //word 9 vendor specific