2 EXTRN MX_BYTESPERLINE:BYTE
7 EXTRN MX_CODESEGMENT:BYTE
8 EXTRN MX_SCANBUFFER:BYTE
9 EXTRN MX_VIDEOSEGMENT:BYTE
10 MX_TEXT SEGMENT PARA PUBLIC USE16 'CODE'
11 ASSUME CS:MX_TEXT, DS:DGROUP, SS:DGROUP
30 mov word ptr es:[di],ax
44 mov word ptr es:[di],ax
61 mov word ptr es:[di],ax
78 mov word ptr es:2[di],ax
92 mov byte ptr es:3[di],al
93 mov byte ptr es:2[di],dh
110 mov byte ptr es:3[di],al
111 mov byte ptr es:2[di],dh
121 mov ax,word ptr 6[si]
122 mov bx,word ptr 2[si]
127 mov dx,word ptr cs:MX_BYTESPERLINE
129 mov byte ptr es:[di],ah
147 mov ax,word ptr cs:MX_BYTESPERLINE
150 mov byte ptr es:[di],ah
173 mov ax,word ptr cs:MX_BYTESPERLINE
176 mov byte ptr es:[di],ah
193 mov cx,word ptr 14H[bp]
198 les di,dword ptr 10H[bp]
199 lds si,dword ptr 0cH[bp]
200 mov word ptr -16H[bp],7fffH
201 mov word ptr -1aH[bp],8000H
202 mov word ptr -18H[bp],7fffH
203 mov word ptr -1eH[bp],8000H
206 mov bx,word ptr es:[di]
211 cmp ax,word ptr -16H[bp]
213 mov word ptr -16H[bp],ax
214 mov word ptr -0eH[bp],dx
215 mov word ptr -10H[bp],dx
217 cmp ax,word ptr -1aH[bp]
219 mov word ptr -1aH[bp],ax
220 mov word ptr -12H[bp],dx
222 mov ax,word ptr 2[bx]
223 cmp ax,word ptr -18H[bp]
225 mov word ptr -18H[bp],ax
227 cmp ax,word ptr -1eH[bp]
229 mov word ptr -1eH[bp],ax
237 mov ax,word ptr -1aH[bp]
238 cmp ax,word ptr cs:MX_CLIPX1
242 mov bx,word ptr -16H[bp]
243 cmp bx,word ptr cs:MX_CLIPX2
251 mov ax,word ptr -1eH[bp]
252 cmp ax,word ptr cs:MX_CLIPY1
256 mov bx,word ptr -18H[bp]
257 cmp bx,word ptr cs:MX_CLIPY2
266 shl word ptr 14H[bp],1
267 mov es,word ptr cs:MX_CODESEGMENT
268 mov ax,offset MX_TEXT:MX_SCANBUFFER
269 mov word ptr -4[bp],ax
270 mov si,word ptr -0eH[bp]
272 lds bx,dword ptr 10H[bp]
273 mov di,word ptr [bx+si]
278 mov si,word ptr 14H[bp]
280 mov word ptr -0eH[bp],si
281 mov si,word ptr [bx+si]
282 lds bx,dword ptr 8[bp]
285 mov ax,word ptr [bx+si]
286 mov dx,word ptr [bx+di]
287 lds bx,dword ptr 0cH[bp]
292 mov di,word ptr -4[bp]
294 mov word ptr -4[bp],di
295 mov si,word ptr -0eH[bp]
296 cmp si,word ptr -12H[bp]
298 mov ax,offset MX_TEXT:MX_SCANBUFFER+4
299 mov word ptr -6[bp],ax
300 mov si,word ptr -10H[bp]
302 lds bx,dword ptr 10H[bp]
303 mov di,word ptr [bx+si]
306 cmp si,word ptr 14H[bp]
310 mov word ptr -10H[bp],si
311 mov si,word ptr [bx+si]
312 lds bx,dword ptr 8[bp]
315 mov ax,word ptr [bx+si]
316 mov dx,word ptr [bx+di]
317 lds bx,dword ptr 0cH[bp]
322 mov di,word ptr -6[bp]
324 mov word ptr -6[bp],di
325 mov si,word ptr -10H[bp]
326 cmp si,word ptr -12H[bp]
328 mov si,offset MX_TEXT:MX_SCANBUFFER
329 mov ax,word ptr -16H[bp]
330 mov cx,word ptr -1aH[bp]
332 mov bx,word ptr cs:MX_CLIPX1
337 mov word ptr -16H[bp],ax
345 sub bx,word ptr cs:MX_CLIPX2
353 mov word ptr -8[bp],cx
354 mov word ptr -4[bp],si
355 mov ds,word ptr cs:MX_CODESEGMENT
356 mov ax,word ptr -18H[bp]
357 cmp ax,word ptr cs:MX_CLIPY1
359 mov ax,word ptr -1eH[bp]
360 cmp ax,word ptr cs:MX_CLIPY2
372 mov cx,word ptr 4[si]
373 mov dx,word ptr cs:MX_CLIPY2
378 mov word ptr 4[si],dx
383 mov ax,word ptr 2[si]
384 sub ax,word ptr 6[si]
387 add word ptr 6[si],ax
389 mov cx,word ptr 4[si]
391 mov dx,word ptr cs:MX_CLIPY1
402 mov ax,word ptr 6[si]
403 sub ax,word ptr 2[si]
406 add word ptr 2[si],ax
409 mov word ptr [si],0ffffH
412 mov es,word ptr cs:MX_VIDEOSEGMENT
413 mov si,word ptr -4[bp]
414 mov cl,byte ptr -16H[bp]
418 mov byte ptr -2[bp],al
419 shr word ptr -16H[bp],1
420 shr word ptr -16H[bp],1
421 mov ax,word ptr 6[bp]
424 mov word ptr 6[bp],ax
429 mov cx,word ptr 4[si]
432 mul word ptr cs:MX_BYTESPERLINE
433 add ax,word ptr -16H[bp]
435 mov ah,byte ptr -2[bp]
439 mov dx,word ptr 6[bp]
442 rol byte ptr -2[bp],1
443 adc word ptr -16H[bp],0