home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / ERRHNDLR.ZIP / TABLES.TXT < prev   
Text File  |  1988-10-17  |  1KB  |  52 lines

  1. Table 1.  Stack Contents on Entry to Critical Error Handler
  2.  
  3.    SP Offset
  4.  
  5.      +00h      IP        DOS return address and flags
  6.      +02h      CS         an IRET from here will go to DOS
  7.      +04h      flags
  8.      
  9.      +06h      AX        your applications registers
  10.      +08h      BX
  11.      +0ah      CX
  12.      +0ch      DX
  13.      +0eh      SI
  14.      +10h      DI
  15.      +12h      BP
  16.      +14h      DS
  17.      +16h      ES
  18.      
  19.      +18h      IP        your application return address
  20.      +1ah      CS
  21.      +1ch      flags
  22.  
  23.  
  24. Table 2.  Error Codes in DI
  25.  
  26.      0    Write-protected disk
  27.      1    Unknown unit (invalid drive number)
  28.      2    Drive not ready (door open or no disk)
  29.      3    Unknown command (request not supported by device driver)
  30.      4    CRC error
  31.      5    Bad request structure length
  32.      6    Seek error (could not access requested track)
  33.      7    Unknown media (unrecognized disk format)
  34.      8    Sector not found
  35.      9    Printer out of paper
  36.      10   Device write error
  37.      11   Device read error
  38.      12   General error
  39.  
  40.  
  41. Table 3.  Disk Error Operation and Area Data in AH
  42.  
  43.      AH Bits
  44.  
  45.      2   1   0
  46.      x   x   0      Read Operation
  47.      x   x   1      Write Operation
  48.      0   0   x      Error occurred in DOS system file area
  49.      0   1   x      Error occurred in FAT area
  50.      1   0   x      Error occurred in Directory area
  51.      1   1   x      Error occurred in Data area
  52.