Int 13H [PC] [AT] [PS/2] Function 01H Get disk system status

Returns the status of the most recent disk operation.

Call with:

AH = 01H

DL = drive

00H—7FH floppy disk

80H—FFH fixed disk

Returns:

AH = 00H

AL = status of previous disk operation

00H no error

01H invalid command

02H address mark not found

03H disk write-protected (F)

04H sector not found

05H reset failed (H)

06H floppy disk removed (F)

07H bad parameter table (H)

08H DMA overrun (F)

09H DMA crossed 64 KB boundary

0AH bad sector flag (H)

0BH bad track flag (H)

0CH media type not found (F)

0DH invalid number of sectors on format (H)

0EH control data address mark detected (H)

0FH DMA arbitration level out of range (H)

10H uncorrectable CRC (1) or ECC (2) data error

11H ECC corrected data error (H)

20H controller failed

40H seek failed

80H disk timed-out (failed to respond)

AAH drive not ready (H)

BBH undefined error (H)

CCH write fault (H)

E0H status register error (H)

FFH sense operation failed (H)

H = fixed disk only, F = floppy disk only

(1) Cyclic Redundancy Check code

(2) Error Checking and Correcting code

Note:

On fixed disks, error code 11H (ECC data error) indicates that a recoverable error was detected during a preceding Read Sector (Int 13H Function 02H) function.