7 EXTRN MX_CODESEGMENT:BYTE
8 EXTRN MX_SCANBUFFER:BYTE
9 EXTRN MX_VIDEOSEGMENT:BYTE
10 EXTRN MX_BYTESPERLINE:BYTE
11 MX_TEXT SEGMENT PARA PUBLIC USE16 'CODE'
12 ASSUME CS:MX_TEXT, DS:DGROUP, SS:DGROUP
27 mov word ptr es:[di],ax
41 mov word ptr es:[di],ax
58 mov word ptr es:[di],ax
75 mov cx,word ptr 10H[bp]
80 les di,dword ptr 0cH[bp]
81 lds si,dword ptr 8[bp]
82 mov word ptr -16H[bp],7fffH
83 mov word ptr -1aH[bp],8000H
84 mov word ptr -18H[bp],7fffH
85 mov word ptr -1eH[bp],8000H
88 mov bx,word ptr es:[di]
93 cmp ax,word ptr -16H[bp]
95 mov word ptr -16H[bp],ax
96 mov word ptr -0eH[bp],dx
97 mov word ptr -10H[bp],dx
99 cmp ax,word ptr -1aH[bp]
101 mov word ptr -1aH[bp],ax
102 mov word ptr -12H[bp],dx
104 mov ax,word ptr 2[bx]
105 cmp ax,word ptr -18H[bp]
107 mov word ptr -18H[bp],ax
109 cmp ax,word ptr -1eH[bp]
111 mov word ptr -1eH[bp],ax
119 mov ax,word ptr -1aH[bp]
120 cmp ax,word ptr cs:MX_CLIPX1
124 mov bx,word ptr -16H[bp]
125 cmp bx,word ptr cs:MX_CLIPX2
133 mov ax,word ptr -1eH[bp]
134 cmp ax,word ptr cs:MX_CLIPY1
138 mov bx,word ptr -18H[bp]
139 cmp bx,word ptr cs:MX_CLIPY2
148 shl word ptr 10H[bp],1
149 mov es,word ptr cs:MX_CODESEGMENT
150 mov ax,offset MX_TEXT:MX_SCANBUFFER
151 mov word ptr -4[bp],ax
152 mov si,word ptr -0eH[bp]
154 lds bx,dword ptr 0cH[bp]
155 mov di,word ptr [bx+si]
160 mov si,word ptr 10H[bp]
162 mov word ptr -0eH[bp],si
163 mov si,word ptr [bx+si]
168 lds bx,dword ptr 8[bp]
171 mov di,word ptr -4[bp]
173 mov word ptr -4[bp],di
174 mov si,word ptr -0eH[bp]
175 cmp si,word ptr -12H[bp]
177 mov ax,offset MX_TEXT:MX_SCANBUFFER+2
178 mov word ptr -6[bp],ax
179 mov si,word ptr -10H[bp]
181 lds bx,dword ptr 0cH[bp]
182 mov di,word ptr [bx+si]
185 cmp si,word ptr 10H[bp]
189 mov word ptr -10H[bp],si
190 mov si,word ptr [bx+si]
195 lds bx,dword ptr 8[bp]
198 mov di,word ptr -6[bp]
200 mov word ptr -6[bp],di
201 mov si,word ptr -10H[bp]
202 cmp si,word ptr -12H[bp]
204 mov si,offset MX_TEXT:MX_SCANBUFFER
205 mov ax,word ptr -16H[bp]
206 mov cx,word ptr -1aH[bp]
208 mov bx,word ptr cs:MX_CLIPX1
213 mov word ptr -16H[bp],ax
220 sub bx,word ptr cs:MX_CLIPX2
228 mov word ptr -8[bp],cx
229 mov word ptr -4[bp],si
230 mov ds,word ptr cs:MX_CODESEGMENT
231 mov ax,word ptr -18H[bp]
232 cmp ax,word ptr cs:MX_CLIPY1
234 mov ax,word ptr -1eH[bp]
235 cmp ax,word ptr cs:MX_CLIPY2
247 mov cx,word ptr 2[si]
248 mov dx,word ptr cs:MX_CLIPY2
253 mov word ptr 2[si],dx
258 mov cx,word ptr 2[si]
260 mov dx,word ptr cs:MX_CLIPY1
272 mov word ptr [si],0ffffH
275 mov es,word ptr cs:MX_VIDEOSEGMENT
276 mov si,word ptr -4[bp]
277 mov cl,byte ptr -16H[bp]
281 mov byte ptr -2[bp],al
282 shr word ptr -16H[bp],1
283 shr word ptr -16H[bp],1
288 mov cx,word ptr 2[si]
291 mul word ptr cs:MX_BYTESPERLINE
292 add ax,word ptr -16H[bp]
294 mov ah,byte ptr -2[bp]
298 mov ax,word ptr 6[bp]
299 mov dx,word ptr cs:MX_BYTESPERLINE
302 mov byte ptr es:[di],al
306 mov byte ptr es:[di],al
308 mov byte ptr es:[di],al
313 rol byte ptr -2[bp],1
314 adc word ptr -16H[bp],0