qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 13H Function 01H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Disk System Status      [PC] [AT] [PS/2]
 
  Returns the status of the most recent disk operation.
 
  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 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* or ECC** data
                                            error
                                        11H ECC corrected data error (H)
                                        20H controller failed
                                        40H seek failed
                                        80H disk timedout
                                            (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
                                    -♦-