Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 13h Function 01h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   13h     Function:   01h
 
  Title:       Get Disk System Status
 
  Description:                                          [PC] [AT] [PS/2]
 
     Returns the status of the most recent disk operation. 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.
 
     Input                         Output
 
     AH = 01h                      AH = 00h
     DL = Drive                    AL = Status of previous disk operation
        = 00h-7Fh  floppy disk        = 00h      No error
        = 80h-FFh  fixed disk         = 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 64K 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* or ECC£
                                                 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
     * Cyclic Redundancy Check code
     £ Error Checking and Correcting code
                                    -♦-