6 EXTRN MX_CODESEGMENT:BYTE
7 EXTRN MX_SCANBUFFER:BYTE
8 EXTRN MX_VIDEOSEGMENT:BYTE
9 EXTRN MX_BYTESPERLINE:BYTE
10 MX_TEXT SEGMENT PARA PUBLIC USE16 'CODE'
11 ASSUME CS:MX_TEXT, DS:DGROUP, SS:DGROUP
26 mov word ptr es:[di],ax
40 mov word ptr es:[di],ax
57 mov word ptr es:[di],ax
74 mov cx,word ptr 10H[bp]
79 les di,dword ptr 0cH[bp]
80 lds si,dword ptr 8[bp]
81 mov word ptr -16H[bp],7fffH
82 mov word ptr -1aH[bp],8000H
83 mov word ptr -18H[bp],7fffH
84 mov word ptr -1eH[bp],8000H
87 mov bx,word ptr es:[di]
92 cmp ax,word ptr -16H[bp]
94 mov word ptr -16H[bp],ax
95 mov word ptr -0eH[bp],dx
96 mov word ptr -10H[bp],dx
98 cmp ax,word ptr -1aH[bp]
100 mov word ptr -1aH[bp],ax
101 mov word ptr -12H[bp],dx
103 mov ax,word ptr 2[bx]
104 cmp ax,word ptr -18H[bp]
106 mov word ptr -18H[bp],ax
108 cmp ax,word ptr -1eH[bp]
110 mov word ptr -1eH[bp],ax
118 mov ax,word ptr -1aH[bp]
119 cmp ax,word ptr cs:MX_CLIPX1
123 mov bx,word ptr -16H[bp]
124 cmp bx,word ptr cs:MX_CLIPX2
132 mov ax,word ptr -1eH[bp]
133 cmp ax,word ptr cs:MX_CLIPY1
137 mov bx,word ptr -18H[bp]
138 cmp bx,word ptr cs:MX_CLIPY2
147 shl word ptr 10H[bp],1
148 mov es,word ptr cs:MX_CODESEGMENT
149 mov ax,offset MX_TEXT:MX_SCANBUFFER
150 mov word ptr -4[bp],ax
151 mov si,word ptr -0eH[bp]
153 lds bx,dword ptr 0cH[bp]
154 mov di,word ptr [bx+si]
159 mov si,word ptr 10H[bp]
161 mov word ptr -0eH[bp],si
162 mov si,word ptr [bx+si]
167 lds bx,dword ptr 8[bp]
170 mov di,word ptr -4[bp]
172 mov word ptr -4[bp],di
173 mov si,word ptr -0eH[bp]
174 cmp si,word ptr -12H[bp]
176 mov ax,offset MX_TEXT:MX_SCANBUFFER+2
177 mov word ptr -6[bp],ax
178 mov si,word ptr -10H[bp]
180 lds bx,dword ptr 0cH[bp]
181 mov di,word ptr [bx+si]
184 cmp si,word ptr 10H[bp]
188 mov word ptr -10H[bp],si
189 mov si,word ptr [bx+si]
194 lds bx,dword ptr 8[bp]
197 mov di,word ptr -6[bp]
199 mov word ptr -6[bp],di
200 mov si,word ptr -10H[bp]
201 cmp si,word ptr -12H[bp]
203 mov si,offset MX_TEXT:MX_SCANBUFFER
204 mov ax,word ptr -16H[bp]
205 mov cx,word ptr -1aH[bp]
207 mov bx,word ptr cs:MX_CLIPX1
212 mov word ptr -16H[bp],ax
219 sub bx,word ptr cs:MX_CLIPX2
227 mov word ptr -8[bp],cx
228 mov word ptr -4[bp],si
229 mov ds,word ptr cs:MX_CODESEGMENT
230 mov ax,word ptr -18H[bp]
231 cmp ax,word ptr cs:MX_CLIPY1
233 mov ax,word ptr -1eH[bp]
234 cmp ax,word ptr cs:MX_CLIPY2
246 mov cx,word ptr 2[si]
247 mov dx,word ptr cs:MX_CLIPY2
252 mov word ptr 2[si],dx
257 mov cx,word ptr 2[si]
259 mov dx,word ptr cs:MX_CLIPY1
271 mov word ptr [si],0ffffH
274 mov es,word ptr cs:MX_VIDEOSEGMENT
275 mov si,word ptr -4[bp]
276 mov cl,byte ptr -16H[bp]
280 mov byte ptr -2[bp],al
281 shr word ptr -16H[bp],1
282 shr word ptr -16H[bp],1
287 mov cx,word ptr 2[si]
290 mul word ptr cs:MX_BYTESPERLINE
291 add ax,word ptr -16H[bp]
293 mov ah,byte ptr -2[bp]
297 mov ax,word ptr 6[bp]
298 mov dx,word ptr cs:MX_BYTESPERLINE
301 mov byte ptr es:[di],al
305 mov byte ptr es:[di],al
307 mov byte ptr es:[di],al
312 rol byte ptr -2[bp],1
313 adc word ptr -16H[bp],0