home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / ddkit.zip / REQHDR.MAC < prev   
Text File  |  1986-06-03  |  2KB  |  43 lines

  1. ;
  2. ;
  3. ; static request header
  4. LNG      EQU    0               ;BYTE: first byte is length of header
  5. UNIT     EQU    1               ;BYTE: unit number for block devices
  6. CMD      EQU    2               ;BYTE: command code for request
  7. STAT     EQU    3               ;WORD: status
  8. DOS_Q    EQU    5               ;DWORD: DOS queue
  9. DEV_Q    EQU    9               ;DWORD: device queue
  10. ;
  11. ;  init header
  12. UNITS    EQU    13              ;BYTE: number of units
  13. BRKOFF   EQU    14              ;DWORD: ending address for resident code
  14. BRKSEG   EQU    16              ;
  15. BPB      EQU    18              ;DWORD: ptr to BPB array on exit (block devices only)
  16. PARMS    EQU    18              ;DWORD: ptr to string following "device=" cmd
  17. ;
  18. ;  non destructive read - no wait
  19. PRECHAR  EQU    13              ;BYTE: one look ahead character
  20. ;
  21. ;  input, output, IOCTL in, IOCTL out
  22. MEDIA    EQU    13              ;BYTE: media descriptor byte
  23. BUF      EQU    14              ;DWORD: buffer address
  24. CNT      EQU    18              ;WORD: byte/sector count
  25. START    EQU    20              ;WORD: starting sector number
  26. ;
  27. ;   status word bit definitions (most significant byte)
  28. ;
  29. REQDON   EQU    01H           ;request complete
  30. BUSY     EQU    02H           ;device busy
  31. ERROR    EQU    80H           ;error encountered 
  32. ;
  33. ;    status word error codes (least significant byte)
  34. ;
  35. NOTRDY   EQU    02H           ;device not ready
  36. UNKCMD   EQU    03H           ;unknown command
  37. NOPAPER  EQU    09H           ;printer out of paper
  38. WRFLT    EQU    0AH           ;write fault
  39. RDFLT    EQU    0BH           ;read fault
  40. FAIL     EQU    0CH           ;general failure
  41.  
  42.  
  43.