Source code of Windows XP (NT5)
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.

184 lines
5.3 KiB

  1. ;""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" =B
  2. ; CONDITIONAL ASSEMBLY CONTROLS
  3. ;""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" =B
  4. WINTHORN EQU 1 ;OS/2 compatible
  5. ;""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" =B
  6. ; VIDEO REGISTER PORT ADDRESS EQUATES =B
  7. ; =B
  8. ;""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" =B
  9. seq_addr EQU 0C4H ;Sequencer Address =B
  10. seq_data EQU 0C5H ;Sequencer Data =B
  11. crtc_addr EQU 0D4H ;CRT Controller Address (Color) =B
  12. crtc_addr_b EQU 0B4H ;CRT Controller Address (Mono) =B
  13. crtc_data EQU 0D5H ;CRT Controller Data =B
  14. graph_1_pos EQU 0CCH ;Graphics 1 Position =B
  15. graph_2_pos EQU 0CAH ;Graphics 2 Position =B
  16. graph_addr EQU 0CEH ;Graphics 1 & 2 Address =B
  17. graph_data EQU 0CFH ;Graphics 1 & 2 Data =B
  18. misc_output EQU 0C2H ;Miscellaneous Output =B
  19. misc_read EQU 0CCH ;Miscellaneous Output Read Port Address =B
  20. in_stat_0 EQU 0C2H ;Input Status Register 0 =B
  21. input_status_b EQU 0BAH ;Feature Control (Mono) =B
  22. input_status EQU 0DAH ;Feature Control (Color) =B
  23. attr_read EQU 0C1H ;Attribute Controller Read Address =B
  24. attr_write EQU 0C0H ;Attribute Controller Write Address =B
  25. fctrl_read EQU 0CAH ;Feature Control Regiester Read Address =B
  26. ;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  27. ; SEQUENCER ADDRESS REGISTER EQUATES
  28. ;
  29. ;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  30. s_reset EQU 00H ;Reset =B
  31. s_clock EQU 01H ;Clocking Mode =B
  32. s_map EQU 02H ;Map Mask =B
  33. s_cgen EQU 03H ;Character Map Select =B
  34. s_mem EQU 04H ;Memory Mode =B
  35. ;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  36. ; GRAPHICS ADDRESS REGISTER EQUATES
  37. ;
  38. ;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  39. g_set_reset EQU 00H ;set/reset =B
  40. g_enbl_set EQU 01H ;enable set/reset =B
  41. g_clr_comp EQU 02H ;color compare =B
  42. g_data_rot EQU 03H ;data rotate =B
  43. g_read_map EQU 04H ;read map select =B
  44. g_mode EQU 05H ;mode =B
  45. g_misc EQU 06H ;miscellaneous =B
  46. g_color EQU 07H ;color don't care =B
  47. g_bit_mask EQU 08H ;bit mask =B
  48. ;---------------------------------------------------------------------+
  49. ; |
  50. ; Miscellaneous Equates |
  51. ; |
  52. ;---------------------------------------------------------------------+
  53. LINELEN EQU 80 ; Length of a Graphics Buffer Line
  54. COLPELS EQU 8 ; Number of pels per text column
  55. ;DEFROFFU EQU 1 ; Default Pointer Icon Row Center Offset
  56. ;DEFROFFD EQU 14 ; Default Pointer Icon Row Center Offset
  57. ;DEFCOFFR EQU 11 ; Default Pointer Icon Column Center Offst
  58. ;DEFCOFFL EQU 4 ; Default Pointer Icon Column Center Offst
  59. ;ICONROWS EQU 16 ; Number of Rows in Pointer Icon
  60. ;M_WHITE EQU 15 ;default foreground color (icon)
  61. ;M_DAXIS EQU 11 ;default axis mouse pointer
  62. DEFROFFU EQU 1 ; Default Pointer Icon Row Center Offset
  63. DEFROFFD EQU 14 ; Default Pointer Icon Row Center Offset
  64. DEFCOFFR EQU 14 ; Default Pointer Icon Column Center Offst
  65. DEFCOFFL EQU 2 ; Default Pointer Icon Column Center Offst
  66. ICONROWS EQU 20 ; Number of Rows in Pointer Icon
  67. M_DAXIS EQU 800 ;default axis mouse pointer
  68. ICONCOLS EQU 16 ; Number of Columns in Pointer Icon
  69. SHFTMSK EQU 07H ; Column Shift Count Bit Mask (Hi-Res)
  70. M_BLACK EQU 0 ;default background color (icon)
  71. M_WHITE EQU 15 ;default foreground color (icon)
  72. VSICONR EQU 28 ;# pel rows
  73. VSICONC EQU 2*8 ;# pel columns
  74. MVSICONR EQU 16 ;minimun pel rows in sb icon
  75. MHSICONC EQU 3*8 ;minimum pel cols in sb icon
  76. ;;
  77. ;; Long Conditional Jump Macros
  78. ;;
  79. lja macro Farlabel
  80. local Nearlabel
  81. jna Nearlabel
  82. jmp Farlabel
  83. Nearlabel:
  84. endm
  85. ljae macro Farlabel
  86. local Nearlabel
  87. jnae Nearlabel
  88. jmp Farlabel
  89. Nearlabel:
  90. endm
  91. ljb macro Farlabel
  92. local Nearlabel
  93. jnb Nearlabel
  94. jmp Farlabel
  95. Nearlabel:
  96. endm
  97. ljc macro Farlabel
  98. local Nearlabel
  99. jnc Nearlabel
  100. jmp Farlabel
  101. Nearlabel:
  102. endm
  103. ljbe macro Farlabel
  104. local Nearlabel
  105. jnbe Nearlabel
  106. jmp Farlabel
  107. Nearlabel:
  108. endm
  109. lje macro Farlabel
  110. local Nearlabel
  111. jne Nearlabel
  112. jmp Farlabel
  113. Nearlabel:
  114. endm
  115. ljz macro Farlabel
  116. local Nearlabel
  117. jnz Nearlabel
  118. jmp Farlabel
  119. Nearlabel:
  120. endm
  121. ljg macro Farlabel
  122. local Nearlabel
  123. jng Nearlabel
  124. jmp Farlabel
  125. Nearlabel:
  126. endm
  127. ljge macro Farlabel
  128. local Nearlabel
  129. jnge Nearlabel
  130. jmp Farlabel
  131. Nearlabel:
  132. endm
  133. ljl macro Farlabel
  134. local Nearlabel
  135. jnl Nearlabel
  136. jmp Farlabel
  137. Nearlabel:
  138. endm
  139. ljle macro Farlabel
  140. local Nearlabel
  141. jnle Nearlabel
  142. jmp Farlabel
  143. Nearlabel:
  144. endm
  145. ljnc macro Farlabel
  146. local Nearlabel
  147. jc Nearlabel
  148. jmp Farlabel
  149. Nearlabel:
  150. endm
  151. ljne macro Farlabel
  152. local Nearlabel
  153. je Nearlabel
  154. jmp Farlabel
  155. Nearlabel:
  156. endm
  157. ljnz macro Farlabel
  158. local Nearlabel
  159. jz Nearlabel
  160. jmp Farlabel
  161. Nearlabel:
  162. endm
  163. ljno macro Farlabel
  164. local Nearlabel
  165. jo Nearlabel
  166. jmp Farlabel
  167. Nearlabel:
  168. endm
  169. ljo macro Farlabel
  170. local Nearlabel
  171. jno Nearlabel
  172. jmp Farlabel
  173. Nearlabel:
  174. endm