3 EXTRN MX_BYTESPERLINE:BYTE
8 EXTRN MX_CODESEGMENT:BYTE
9 EXTRN MX_SCANBUFFER:BYTE
10 EXTRN MX_VIDEOSEGMENT:BYTE
11 MX_TEXT SEGMENT PARA PUBLIC USE16 'CODE'
12 ASSUME CS:MX_TEXT, DS:DGROUP, SS:DGROUP
31 mov word ptr es:[di],ax
45 mov word ptr es:[di],ax
62 mov word ptr es:[di],ax
79 mov word ptr es:2[di],ax
93 mov byte ptr es:3[di],al
94 mov byte ptr es:2[di],dh
111 mov byte ptr es:3[di],al
112 mov byte ptr es:2[di],dh
122 mov ax,word ptr 6[si]
123 mov bx,word ptr 2[si]
128 mov dx,word ptr cs:MX_BYTESPERLINE
130 mov byte ptr es:[di],ah
148 mov ax,word ptr cs:MX_BYTESPERLINE
151 mov byte ptr es:[di],ah
174 mov ax,word ptr cs:MX_BYTESPERLINE
177 mov byte ptr es:[di],ah
194 mov cx,word ptr 14H[bp]
199 les di,dword ptr 10H[bp]
200 lds si,dword ptr 0cH[bp]
201 mov word ptr -16H[bp],7fffH
202 mov word ptr -1aH[bp],8000H
203 mov word ptr -18H[bp],7fffH
204 mov word ptr -1eH[bp],8000H
207 mov bx,word ptr es:[di]
212 cmp ax,word ptr -16H[bp]
214 mov word ptr -16H[bp],ax
215 mov word ptr -0eH[bp],dx
216 mov word ptr -10H[bp],dx
218 cmp ax,word ptr -1aH[bp]
220 mov word ptr -1aH[bp],ax
221 mov word ptr -12H[bp],dx
223 mov ax,word ptr 2[bx]
224 cmp ax,word ptr -18H[bp]
226 mov word ptr -18H[bp],ax
228 cmp ax,word ptr -1eH[bp]
230 mov word ptr -1eH[bp],ax
238 mov ax,word ptr -1aH[bp]
239 cmp ax,word ptr cs:MX_CLIPX1
243 mov bx,word ptr -16H[bp]
244 cmp bx,word ptr cs:MX_CLIPX2
252 mov ax,word ptr -1eH[bp]
253 cmp ax,word ptr cs:MX_CLIPY1
257 mov bx,word ptr -18H[bp]
258 cmp bx,word ptr cs:MX_CLIPY2
267 shl word ptr 14H[bp],1
268 mov es,word ptr cs:MX_CODESEGMENT
269 mov ax,offset MX_TEXT:MX_SCANBUFFER
270 mov word ptr -4[bp],ax
271 mov si,word ptr -0eH[bp]
273 lds bx,dword ptr 10H[bp]
274 mov di,word ptr [bx+si]
279 mov si,word ptr 14H[bp]
281 mov word ptr -0eH[bp],si
282 mov si,word ptr [bx+si]
283 lds bx,dword ptr 8[bp]
286 mov ax,word ptr [bx+si]
287 mov dx,word ptr [bx+di]
288 lds bx,dword ptr 0cH[bp]
293 mov di,word ptr -4[bp]
295 mov word ptr -4[bp],di
296 mov si,word ptr -0eH[bp]
297 cmp si,word ptr -12H[bp]
299 mov ax,offset MX_TEXT:MX_SCANBUFFER+4
300 mov word ptr -6[bp],ax
301 mov si,word ptr -10H[bp]
303 lds bx,dword ptr 10H[bp]
304 mov di,word ptr [bx+si]
307 cmp si,word ptr 14H[bp]
311 mov word ptr -10H[bp],si
312 mov si,word ptr [bx+si]
313 lds bx,dword ptr 8[bp]
316 mov ax,word ptr [bx+si]
317 mov dx,word ptr [bx+di]
318 lds bx,dword ptr 0cH[bp]
323 mov di,word ptr -6[bp]
325 mov word ptr -6[bp],di
326 mov si,word ptr -10H[bp]
327 cmp si,word ptr -12H[bp]
329 mov si,offset MX_TEXT:MX_SCANBUFFER
330 mov ax,word ptr -16H[bp]
331 mov cx,word ptr -1aH[bp]
333 mov bx,word ptr cs:MX_CLIPX1
338 mov word ptr -16H[bp],ax
346 sub bx,word ptr cs:MX_CLIPX2
354 mov word ptr -8[bp],cx
355 mov word ptr -4[bp],si
356 mov ds,word ptr cs:MX_CODESEGMENT
357 mov ax,word ptr -18H[bp]
358 cmp ax,word ptr cs:MX_CLIPY1
360 mov ax,word ptr -1eH[bp]
361 cmp ax,word ptr cs:MX_CLIPY2
373 mov cx,word ptr 4[si]
374 mov dx,word ptr cs:MX_CLIPY2
379 mov word ptr 4[si],dx
384 mov ax,word ptr 2[si]
385 sub ax,word ptr 6[si]
388 add word ptr 6[si],ax
390 mov cx,word ptr 4[si]
392 mov dx,word ptr cs:MX_CLIPY1
403 mov ax,word ptr 6[si]
404 sub ax,word ptr 2[si]
407 add word ptr 2[si],ax
410 mov word ptr [si],0ffffH
413 mov es,word ptr cs:MX_VIDEOSEGMENT
414 mov si,word ptr -4[bp]
415 mov cl,byte ptr -16H[bp]
419 mov byte ptr -2[bp],al
420 shr word ptr -16H[bp],1
421 shr word ptr -16H[bp],1
422 mov ax,word ptr 6[bp]
425 mov word ptr 6[bp],ax
430 mov cx,word ptr 4[si]
433 mul word ptr cs:MX_BYTESPERLINE
434 add ax,word ptr -16H[bp]
436 mov ah,byte ptr -2[bp]
440 mov dx,word ptr 6[bp]
443 rol byte ptr -2[bp],1
444 adc word ptr -16H[bp],0