Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BIOS ref. - <b>int 13h, 01h get disk system status all</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Int 13h, 01h            Get Disk System Status                            all

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

        Entry   AH = 01h
                DL = Drive number

        Return  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

    ------------------------------------------------------------------

    The most recent diskette operation status is found at 0040h:0041h.
    The most recent fixed disk operation status is at 0040h:0074h.

    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 0040h:0041h 0040h:0074h

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