ChuckyGang / DiagROM

The Amiga Diagnostic tool
Other
152 stars 30 forks source link

Gayle Test Issue #19

Open jasonsbeer opened 1 year ago

jasonsbeer commented 1 year ago

In testing some different CF card and ATA hard drives, Diagrom indicates "No Drive". I believe this implementation has an error in interpreting the status register of the ATA device. My 68k assembly is not great, but it seems to be expecting $40 when reading the status register of the drive. I'm looking at line 14458 in the source code.

Assuming I have interpreted the code correctly...$40 is not correct for many drives in practice where bit 4 (DSC) may also be set as part of normal functioning. Specifically, bits 7 (BSY), 6 (DRDY), and 0 (ERR) need to be evaluated individually for the presence of a "ready" drive.

In my testing, this is what is displayed by Diagrom in the "Waiting for drive RDY" test...

San Disk = $FF50 Generic CF = $0050 Maxtor ATA Drive = $FF50 Seagate ATA Drive = $0F50

Here is a short thread on this topic: https://eab.abime.net/showthread.php?t=112640

jasonsbeer commented 1 year ago

Withdrawn. This was due to a hardware issue on my part and not an issue with Diagrom.