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