Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Service 01H (decimal 1) reports the disk status in register 0AH. The
  status is preserved after each disk operation, including the read, write,
  verify, and format operations. By preserving the disk status, an
  error-handling or error-reporting routine can be completely independent of
  the routines that operate the disk. This can be very useful. Under the
  right circumstances, you can rely on DOS or your programming language to
  drive the disk (a wise choice; see "Comments and Examples" on page 212),
  and at the same time have your program find out and report the details of
  what went wrong. See Figure 10-2 for details of the status byte.


  Value (hex)              Meaning
  --------------------------------------------------------------------------
  00H                      No error
  01H                      Bad command
  02H                      Address mark not found
  03H                      Write attempted on
                           write-protected disk
(D) = diskette only

  04H                      Sector not found
  05H                      Reset failed
(F) = fixed disk only

  06H                      Diskette removed
(D) = diskette only

  07H                      Bad parameter table
(F) = fixed disk only

  08H                      DMA overrun
  09H                      DMA across 64 KB boundary
  0AH                      Bad sector flag
(F) = fixed disk only

  0BH                      Bad cylinder
(F) = fixed disk only

  0CH                      Bad media type
(D) = diskette only

  0DH                      Invalid number of sectors on format
(F) = fixed disk only

  0EH                      Control data address mark detected
(F) = fixed disk only

  0FH                      DMA arbitration level out of range
(F) = fixed disk only

  10H                      Bad CRC or ECC
  11H                      ECC corrected data error
(F) = fixed disk only

  20H                      Controller failed
  40H                      Seek failed
  80H                      Time out
  AAH                      Drive not ready
(F) = fixed disk only

  BBH                      Undefined error
(F) = fixed disk only

  CCH                      Write fault
(F) = fixed disk only

  EOH                      Status error
(F) = fixed disk only

  FFH                      Sense operation failed
  --------------------------------------------------------------------------


  Figure 10-2.  The value of the disk status byte returned in register AH by
  service 01H.

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