home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / ddkit.zip / DD_DEF.MAC next >
Text File  |  1986-06-03  |  3KB  |  94 lines

  1. ;*************************************************************************
  2. ;*************************************************************************
  3. ;
  4. ;                       DEVICE DEFINITION FILE
  5. ;
  6. ;*************************************************************************
  7. ;*************************************************************************
  8. ;
  9. TRUE     EQU    1
  10. FALSE    EQU    0
  11. ;
  12. ;        Initialize Device Name to Blanks
  13. IN_NAME
  14. ;**************************************************************************
  15. ; Select DOS version number:
  16. ;        for DOS 2.00 or 2.10 set DOS2_X to TRUE
  17. ;        for DOS 3.00 set DOS2_X to FALSE
  18. ;
  19. DOS2_X   EQU    FALSE
  20. DOS3_0   EQU    NOT DOS2_X
  21. ;
  22. ;**************************************************************************
  23. ; Enter device driver name here in place of X's 
  24. ;        (1 to 8 characters in upper case)
  25. ;
  26. ;MKNAME   XXXXXXXX
  27.  MKNAME   PRN
  28. ;
  29. ;**************************************************************************
  30. ;
  31. ;        Select attributes for device from the following table:
  32. ;
  33. ;        Defined Attribute Bits
  34. ;                      
  35. CHR      EQU    8000H           ;character device
  36. IOCTL    EQU    4000H           ;IOCTL supported
  37. IBM      EQU    2000H           ;IBM format block device
  38. ;
  39.          if     DOS3_0
  40. OCREM    EQU    0800H           ;open,close, removable media support
  41.          endif
  42. ;
  43. SPECIAL  EQU    0010H           ;special device using INT 29H handler
  44. CLOCK    EQU    0008H           ;current clock device
  45. NUL      EQU    0004H           ;current NUL device
  46. STDOUT   EQU    0002H           ;current standard output device
  47. STDIN    EQU    0001H           ;current standard input device
  48. ;
  49. ;        Example:  CHR+SPECIAL+STDOUT+STDIN
  50. ;               defines a console device attribute word of 8013H
  51. ;
  52. ;**************************************************************************
  53. ; Edit this line to define your attribute:
  54. ;
  55. ATTRIB   EQU    CHR+IOCTL
  56. ;
  57. ;************************************************************************* 
  58.          PAGE
  59. ;**************************************************************************
  60. ;
  61. ;        Each line in the following table contains three arguments:
  62. ;
  63. ;        #1 is TRUE if the function is implemented, FALSE if not
  64. ;        #2 is the name of a valid function to which the TRUE or FALSE applies
  65. ;        #3 is the label which is the entry point for this function;
  66. ;               if the function is not implemented, DONE or INVALID will
  67. ;               be used; also note that if the function is implemented
  68. ;               the MACRO declares the label EXTRN. If the function is
  69. ;               not implemented the exit pt. is assumed to be defined
  70. ;               within ENTRY.ASM.
  71. ;
  72. FUNCTION  TRUE,INIT,PRNIT
  73. FUNCTION  FALSE,MEDIA_CHECK,DONE
  74. FUNCTION  FALSE,BUILD_BPB,DONE
  75. FUNCTION  TRUE,IOCTL_IN,PRNCTL_IN
  76. FUNCTION  FALSE,INPUT,XFER
  77. FUNCTION  FALSE,ND_INPUT,DONE2
  78. FUNCTION  FALSE,IN_STAT,DONE
  79. FUNCTION  FALSE,FLUSHIN,DONE
  80. FUNCTION  TRUE,OUTPUT,PRNOUT
  81. FUNCTION  TRUE,VOUTPUT,PRNOUT
  82. FUNCTION  TRUE,OUT_STAT,PRNSTAT
  83. FUNCTION  FALSE,FLUSHOUT,DONE
  84. FUNCTION  TRUE,IOCTL_OUT,PRNCTL_OUT
  85.           if    DOS3_0
  86. FUNCTION  FALSE,OPEN,DONE
  87. FUNCTION  FALSE,CLOSE,DONE
  88. FUNCTION  FALSE,REMOVABLE,DONE
  89.           endif
  90. ;
  91. ;End of device definition file
  92. ;--------------------------------------------------------------------------
  93.  
  94.