ChuckyGang/DiagROM

Gayle Test Issue

Opened this issue · 1 comments

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

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