Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 13h, 01h (1) get disk system status all</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 13h,  01h (1)        Get Disk System Status                           all

    Returns status information about the most recent fixed or floppy disk
    operation.

       On entry:      AH           01h
                      DL           Drive number

       Returns:       AH           Status of operation (see below)
                      CF           Set if error, otherwise cleared

  --------------------------------------------------------------------------
                          Status of Operation (AH)

       AH             Meaning
       FFh            Sense operation failed             (fixed)
       E0h            Status error                       (fixed)
       CCh            Write fault                        (fixed)
       BBh            Undefined error                    (fixed)
       80h            Drive not ready
       40h            Seek failure
       20h            Controller failure
       11h            ECC corrected data error           (fixed)
       10h            CRC or ECC data error
       0Fh            DMA arbitration level out of range (fixed)
       0Eh            Control data address mark detected (fixed)
       0Dh            Invalid number sectors on format   (fixed)
       0Ch            Media type not found               (floppy)
       0Bh            Bad cylinder found                 (fixed)
       0Ah            Bad sector flag detected           (fixed)
       09h            Attempt to DMA across a 64K boundary
       08h            DMA overrun
       07h            Drive parameter activity failed    (fixed)
       06h            Diskette change line active         (floppy)
       05h            Reset failed                       (fixed)
       04h            Sector not found
       03h            Attempt to write on write-protected disk
       02h            Address mark not found
       01h            Invalid command
       00h            No error
  --------------------------------------------------------------------------

       Notes:         The most recent diskette operation status is found
                      at 0:441h. The most recent fixed disk operation
                      status is at 0:474h.

                      For the AT, XT-286, and PC Convertible, the BIOS
                      executes INT 15h, Service 90h (Device Busy), for the
                      diskette (Type = 01h) and the fixed disk (Type =
                      00h) prior to waiting for the interrupt. INT 15h,
                      Service 91h (Interrupt Complete), is executed upon
                      completion. Also diskette operations that require
                      the diskette motor to be on will call INT 15h,
                      Service 90 (Device Busy), with the type equal to
                      "Diskette Drive Motor Start" (Type = FDh). This
                      allows the system to perform another task while the
                      drive motor is waiting to get up to speed.

See Also: INT 13h, 00h 0:441h 0:474h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson