Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

222 lines
12 KiB

  1. ;/*
  2. ; * Microsoft Confidential
  3. ; * Copyright (C) Microsoft Corporation 1988 - 1991
  4. ; * All Rights Reserved.
  5. ; */
  6. PAGE ,132 ;AN000;
  7. TITLE DOS - GRAPHICS Command - Common modules ;AN000;
  8. .xlist ;AN000;
  9. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  10. ;; DOS - GRAPHICS Command
  11. ;;
  12. ;; ;AN000;
  13. ;; File Name: GRPATTRN.ASM ;AN000;
  14. ;; ---------- ;AN000;
  15. ;; ;AN000;
  16. ;; Description: ;AN000;
  17. ;; ------------ ;AN000;
  18. ;; This file contains the grey patterns used by PRT_BW_APA for printing ;AN000;
  19. ;; on a Black and White printer. ;AN000;
  20. ;; ;AN000;
  21. ;; Documentation Reference: ;AN000;
  22. ;; ------------------------ ;AN000;
  23. ;; OASIS High Level Design ;AN000;
  24. ;; OASIS GRAPHICS I1 Overview ;AN000;
  25. ;; ;AN000;
  26. ;; Procedures Contained in This File: ;AN000;
  27. ;; ---------------------------------- ;AN000;
  28. ;; none ;AN000;
  29. ;; ;AN000;
  30. ;; Include Files Required: ;AN000;
  31. ;; ----------------------- ;AN000;
  32. ;; GRPATTRN.STR - Structures for patterns. ;AN000;
  33. ;; ;AN000;
  34. ;; ;AN000;
  35. ;; External Procedure References: ;AN000;
  36. ;; ------------------------------ ;AN000;
  37. ;; ;AN000;
  38. ;; Called by PRT_BW_APA from file GRBWPRT.ASM ;AN000;
  39. ;; ;AN000;
  40. ;; Linkage Instructions: ;AN000;
  41. ;; -------------------- ;AN000;
  42. ;; ;AN000;
  43. ;; Change History: ;AN000;
  44. ;; --------------- ;AN000;
  45. ;; ;AN000;
  46. ;; ;AN000;
  47. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  48. .list ;AN000;
  49. CODE SEGMENT PUBLIC 'CODE' ;AN000;
  50. ASSUME CS:CODE,DS:CODE ;AN000;
  51. INCLUDE GRPATTRN.STR ;AN000;
  52. ;AN000;
  53. PUBLIC TAB_DIRECTORY ;AN000;
  54. PUBLIC TAB_DIR_NB_ENTRIES ;AN000;
  55. PUBLIC PAT_4X2 ;AN000;
  56. PUBLIC PAT_4X4 ;AN000;
  57. PUBLIC PAT_6X2 ;AN000;
  58. PUBLIC PAT_8X2 ;AN000;
  59. PUBLIC PAT_6X4 ;AN000;
  60. PUBLIC PAT_8X4 ;AN000;
  61. PUBLIC PAT_8X6 ;AN000;
  62. ;AN000;
  63. ;-------------------------------------------------------------------------------;AN000;
  64. ; ;AN000;
  65. ; PATTERN DIRECTORY: ;AN000;
  66. ; ;AN000;
  67. ;-------------------------------------------------------------------------------;AN000;
  68. TAB_DIR_NB_ENTRIES DB 7 ;AN000;
  69. TAB_DIRECTORY LABEL BYTE ;AN000;
  70. ; ENTRY = <OFFSET PATTERN TABLE, TABLE SIZE, BOX_W, BOX_H, ;AN000;
  71. ; NUNBER OF PATTERNS(INTENSITIES) > ;AN000;
  72. TAB_ENTRY <OFFSET PAT_4X2,-1,40,2,1,8 > ;AN000;
  73. TAB_ENTRY <OFFSET PAT_4X4,-1,40,2,2,8 > ;AN000;
  74. TAB_ENTRY <OFFSET PAT_6X2,-1,70,3,1,10> ;AN000;
  75. TAB_ENTRY <OFFSET PAT_8X2,-1,108,4,1,12> ;AN000;
  76. TAB_ENTRY <OFFSET PAT_6X4,-1,119,3,2,17> ;AN000;
  77. TAB_ENTRY <OFFSET PAT_8X4,-1,162,4,2,18> ;AN000;
  78. TAB_ENTRY <OFFSET PAT_8X6,-1,171,4,3,19> ;AN000;
  79. ;-------------------------------------------------------------------------------;AN000;
  80. ; ;AN000;
  81. ; 4X2 GREY PATTERNS: ;AN000;
  82. ; ;AN000;
  83. ;-------------------------------------------------------------------------------;AN000;
  84. PAT_4X2 LABEL BYTE ;AN000;
  85. ; PATTERN=<MAXIMUM INTENSITY, 1ST COLUMN (top is left bit), 2ND, 3RD, 4TH > ;AN000;
  86. PAT_4X2_STR < 5,11B,11B,11B,11B> ;AN000;
  87. PAT_4X2_STR <13,11B,10B,01B,11B> ;AN000;
  88. PAT_4X2_STR <20,10B,11B,01B,10B> ;AN000;
  89. PAT_4X2_STR <28,10B,01B,01B,10B> ;AN000;
  90. PAT_4X2_STR <36,10B,00B,01B,10B> ;AN000;
  91. PAT_4X2_STR <47,10B,00B,01B,00B> ;AN000;
  92. PAT_4X2_STR <58,10B,00B,00B,00B> ;AN000;
  93. PAT_4X2_STR <63,00B,00B,00B,00B> ;AN000;
  94. ;AN000;
  95. ;-------------------------------------------------------------------------------;AN000;
  96. ; ;AN000;
  97. ; 4X4 GREY PATTERNS: ;AN000;
  98. ; ;AN000;
  99. ;-------------------------------------------------------------------------------;AN000;
  100. PAT_4X4 LABEL BYTE ;AN000;
  101. ; PATTERN=<MAXIMUM INTENSITY, 1ST COLUMN (top is left bit), 2ND, 3RD, 4TH > ;AN000;
  102. PAT_4X4_STR < 5,1111B,1111B,1111B,1111B> ;AN000;
  103. PAT_4X4_STR <13,1111B,1010B,0101B,1111B> ;AN000;
  104. PAT_4X4_STR <20,1010B,1111B,0101B,1010B> ;AN000;
  105. PAT_4X4_STR <28,1010B,0101B,0101B,1010B> ;AN000;
  106. PAT_4X4_STR <36,1010B,0000B,0101B,1010B> ;AN000;
  107. PAT_4X4_STR <47,1010B,0000B,0101B,0000B> ;AN000;
  108. PAT_4X4_STR <58,1010B,0000B,0000B,0000B> ;AN000;
  109. PAT_4X4_STR <63,0000B,0000B,0000B,0000B> ;AN000;
  110. ;AN000;
  111. ;-------------------------------------------------------------------------------;AN000;
  112. ; ;AN000;
  113. ; 6X2 GREY PATTERNS: ;AN000;
  114. ; ;AN000;
  115. ;-------------------------------------------------------------------------------;AN000;
  116. PAT_6X2 LABEL BYTE ;AN000;
  117. PAT_6X2_STR < 3,11B,11B,11B,11B,11B,11B> ;AN000;
  118. PAT_6X2_STR < 8,11B,11B,10B,11B,11B,01B> ;AN000;
  119. PAT_6X2_STR <15,10B,01B,10B,11B,10B,01B> ;AN000;
  120. PAT_6X2_STR <21,01B,10B,10B,01B,10B,10B> ;AN000;
  121. PAT_6X2_STR <28,01B,10B,10B,01B,10B,00B> ;AN000;
  122. PAT_6X2_STR <36,10B,01B,00B,10B,01B,00B> ;AN000;
  123. PAT_6X2_STR <45,00B,10B,00B,01B,00B,10B> ;AN000;
  124. PAT_6X2_STR <53,10B,00B,00B,01B,00B,00B> ;AN000;
  125. PAT_6X2_STR <60,10B,00B,00B,00B,00B,00B> ;AN000;
  126. PAT_6X2_STR <63,00B,00B,00B,00B,00B,00B> ;AN000;
  127. ;AN000;
  128. ;-------------------------------------------------------------------------------;AN000;
  129. ; ;AN000;
  130. ; 8X2 GREY PATTERNS: ;AN000;
  131. ; ;AN000;
  132. ;-------------------------------------------------------------------------------;AN000;
  133. PAT_8X2 LABEL BYTE ;AN000;
  134. PAT_8X2_STR < 3,11B,11B,11B,11B,11B,11B,11B,11B> ;AN000;
  135. PAT_8X2_STR < 9,11B,11B,10B,11B,11B,10B,11B,01B> ;AN000;
  136. PAT_8X2_STR <15,10B,11B,01B,11B,10B,11B,00B,11B> ;AN000;
  137. PAT_8X2_STR <21,10B,01B,11B,10B,01B,10B,01B,10B> ;AN000;
  138. PAT_8X2_STR <27,10B,01B,01B,10B,10B,01B,01B,10B> ;AN000;
  139. PAT_8X2_STR <33,00B,10B,01B,10B,00B,01B,10B,01B> ;AN000;
  140. PAT_8X2_STR <39,10B,00B,10B,01B,00B,10B,00B,01B> ;AN000;
  141. PAT_8X2_STR <45,10B,00B,01B,00B,10B,00B,01B,00B> ;AN000;
  142. PAT_8X2_STR <51,10B,00B,00B,01B,00B,00B,10B,00B> ;AN000;
  143. PAT_8X2_STR <56,10B,00B,00B,00B,01B,00B,00B,00B> ;AN000;
  144. PAT_8X2_STR <61,10B,00B,00B,00B,00B,00B,00B,00B> ;AN000;
  145. PAT_8X2_STR <63,00B,00B,00B,00B,00B,00B,00B,00B> ;AN000;
  146. ;AN000;
  147. ;-------------------------------------------------------------------------------;AN000;
  148. ; ;AN000;
  149. ; 6X4 GREY PATTERNS: ;AN000;
  150. ; ;AN000;
  151. ;-------------------------------------------------------------------------------;AN000;
  152. PAT_6X4 LABEL BYTE ;AN000;
  153. PAT_6X4_STR < 3,1111B,1111B,1111B,1111B,1111B,1111B> ;AN000;
  154. PAT_6X4_STR < 8,1111B,1111B,1101B,1111B,1111B,1011B> ;AN000;
  155. PAT_6X4_STR <13,1111B,1111B,0101B,1011B,1111B,1010B> ;AN000;
  156. PAT_6X4_STR <16,0101B,1111B,0101B,1010B,0101B,1010B> ;AN000;
  157. PAT_6X4_STR <20,0101B,1110B,0101B,1010B,0101B,1010B> ;AN000;
  158. PAT_6X4_STR <24,1010B,0101B,1010B,0101B,0010B,0101B> ;AN000;
  159. PAT_6X4_STR <28,1010B,0101B,1000B,0101B,0010B,0101B> ;AN000;
  160. PAT_6X4_STR <32,1010B,0101B,1000B,1001B,0010B,0100B> ;AN000;
  161. PAT_6X4_STR <37,1010B,0000B,1010B,0101B,0000B,0101B> ;AN000;
  162. PAT_6X4_STR <40,0100B,0001B,1000B,0010B,1000B,0101B> ;AN000;
  163. PAT_6X4_STR <45,0100B,0010B,1000B,0010B,0100B,0001B> ;AN000;
  164. PAT_6X4_STR <49,1010B,0000B,1000B,0101B,0000B,0000B> ;AN000;
  165. PAT_6X4_STR <52,1010B,0000B,0000B,0101B,0000B,0000B> ;AN000;
  166. PAT_6X4_STR <55,0000B,1000B,0000B,0010B,0000B,0100B> ;AN000;
  167. PAT_6X4_STR <58,1000B,0000B,0000B,0010B,0000B,0000B> ;AN000;
  168. PAT_6X4_STR <61,1000B,0000B,0000B,0000B,0000B,0000B> ;AN000;
  169. PAT_6X4_STR <63,0000B,0000B,0000B,0000B,0000B,0000B> ;AN000;
  170. ;AN000;
  171. ;-------------------------------------------------------------------------------;AN000;
  172. ; ;AN000;
  173. ; 8X4 GREY PATTERNS: ;AN000;
  174. ; ;AN000;
  175. ;-------------------------------------------------------------------------------;AN000;
  176. PAT_8X4 LABEL BYTE ;AN000;
  177. PAT_8X4_STR < 1,1111B,1111B,1111B,1111B,1111B,1111B,1111B,1111B> ;AN000;
  178. PAT_8X4_STR < 4,1010B,1111B,1111B,1111B,1010B,1111B,1111B,1111B> ;AN000;
  179. PAT_8X4_STR < 7,1010B,1111B,1101B,1111B,1010B,1111B,0111B,1111B> ;AN000;
  180. PAT_8X4_STR <10,1010B,0111B,1110B,0101B,1010B,1101B,1011B,0101B> ;AN000;
  181. PAT_8X4_STR <13,1001B,1110B,0110B,1001B,0110B,1011B,1001B,0110B> ;AN000;
  182. PAT_8X4_STR <18,1010B,0101B,1110B,0101B,1010B,0101B,1010B,0101B> ;AN000;
  183. PAT_8X4_STR <24,1010B,0101B,0101B,1010B,1010B,0101B,0101B,1010B> ;AN000;
  184. PAT_8X4_STR <30,1010B,0101B,1010B,0000B,0101B,1010B,0101B,0000B> ;AN000;
  185. PAT_8X4_STR <36,1010B,0000B,1010B,0101B,0000B,1010B,0000B,0101B> ;AN000;
  186. PAT_8X4_STR <42,1010B,0000B,0101B,0000B,1010B,0000B,0101B,0000B> ;AN000;
  187. PAT_8X4_STR <46,0010B,1000B,0000B,0010B,1000B,0001B,0100B,0001B> ;AN000;
  188. PAT_8X4_STR <48,1010B,0000B,0101B,0000B,0000B,1010B,0000B,0000B> ;AN000;
  189. PAT_8X4_STR <50,0010B,0000B,1000B,0010B,0000B,0100B,0001B,0000B> ;AN000;
  190. PAT_8X4_STR <53,1010B,0000B,0000B,0000B,0101B,0000B,0000B,0000B> ;AN000;
  191. PAT_8X4_STR <56,0000B,1000B,0000B,0000B,0100B,0000B,0000B,0010B> ;AN000;
  192. PAT_8X4_STR <59,1000B,0000B,0000B,0000B,0010B,0000B,0000B,0000B> ;AN000;
  193. PAT_8X4_STR <62,1000B,0000B,0000B,0000B,0000B,0000B,0000B,0000B> ;AN000;
  194. PAT_8X4_STR <63,0000B,0000B,0000B,0000B,0000B,0000B,0000B,0000B> ;AN000;
  195. ;AN000;
  196. ;-------------------------------------------------------------------------------;AN000;
  197. ; ;AN000;
  198. ; 8X6 GREY PATTERNS: ;AN000;
  199. ; ;AN000;
  200. ;-------------------------------------------------------------------------------;AN000;
  201. PAT_8X6 LABEL BYTE ;AN000;
  202. PAT_8X6_STR < 1,111111B,111111B,111111B,111111B,111111B,111111B,111111B,111111B>;AN000;
  203. PAT_8X6_STR < 4,011011B,111111B,111111B,111111B,110110B,111111B,111111B,111111B>;AN000;
  204. PAT_8X6_STR < 7,101010B,011111B,111111B,110101B,101010B,011111B,111111B,110101B>;AN000;
  205. PAT_8X6_STR <10,101010B,010101B,111111B,101010B,010101B,101010B,111111B,010101B>;AN000;
  206. PAT_8X6_STR <13,011011B,100100B,111011B,100100B,011011B,100100B,011111B,100100B>;AN000;
  207. PAT_8X6_STR <17,101010B,010101B,101010B,010101B,101010B,010101B,101010B,010101B>;AN000;
  208. PAT_8X6_STR <21,101010B,010101B,101010B,010101B,001010B,010101B,101010B,010101B>;AN000;
  209. PAT_8X6_STR <25,010100B,101010B,010101B,001010B,100100B,010001B,101110B,000001B>;AN000;
  210. PAT_8X6_STR <29,000000B,010101B,101010B,010101B,000000B,101010B,010101B,101010B>;AN000;
  211. PAT_8X6_STR <33,010010B,100101B,011000B,100010B,001101B,100000B,001010B,100100B>;AN000;
  212. PAT_8X6_STR <37,100100B,001010B,010000B,001001B,100010B,001101B,010000B,001010B>;AN000;
  213. PAT_8X6_STR <41,100000B,010010B,100100B,000010B,101000B,000101B,010000B,001010B>;AN000;
  214. PAT_8X6_STR <45,100010B,001000B,000010B,100000B,010100B,000001B,100100B,000000B>;AN000;
  215. PAT_8X6_STR <49,101000B,000001B,000100B,010000B,000010B,100000B,001000B,000101B>;AN000;
  216. PAT_8X6_STR <53,101010B,000000B,000000B,000000B,010101B,000000B,000000B,000000B>;AN000;
  217. PAT_8X6_STR <57,000000B,010000B,000000B,000100B,000000B,100000B,000000B,000010B>;AN000;
  218. PAT_8X6_STR <60,100000B,000000B,000000B,000000B,000100B,000000B,000000B,000000B>;AN000;
  219. PAT_8X6_STR <62,100000B,000000B,000000B,000000B,000000B,000000B,000000B,000000B>;AN000;
  220. PAT_8X6_STR <63,000000B,000000B,000000B,000000B,000000B,000000B,000000B,000000B>;AN000;
  221. CODE ENDS ;AN000;
  222. END ;AN000;
  223.