Rev 837 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 837 | Rev 928 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; ;; |
9 | ;; ;; |
10 | ;; Paul Butcher, paul.butcher@asa.co.uk ;; |
10 | ;; Paul Butcher, paul.butcher@asa.co.uk ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 593 $ |
14 | $Revision: 928 $ |
Line 15... | Line 15... | ||
15 | 15 | ||
Line 124... | Line 124... | ||
124 | .cx dd 0 |
124 | .cx dd 0 |
125 | endg |
125 | endg |
Line 126... | Line 126... | ||
126 | 126 | ||
Line 127... | Line 127... | ||
127 | checkVga_N13: |
127 | checkVga_N13: |
128 | 128 | ||
Line 129... | Line 129... | ||
129 | cmp [SCR_MODE],dword 0x13 |
129 | cmp [scr_mode], 0x13 |
130 | jne @f |
130 | jne @f |
131 | 131 | ||
132 | ; cnvl: |
132 | ; cnvl: |
133 | pushad |
133 | pushad |
134 | cmp [EGA_counter],1 |
134 | cmp [EGA_counter],1 |
135 | je novesal |
135 | je novesal |
136 | mov ecx,[MOUSE_X] |
136 | mov ecx, dword [MOUSE_X] |
137 | cmp ecx,[novesachecksum] |
137 | cmp ecx,[novesachecksum] |
138 | jne novesal |
138 | jne novesal |
Line 199... | Line 199... | ||
199 | popad |
199 | popad |
200 | ret |
200 | ret |
Line 201... | Line 201... | ||
201 | 201 | ||
202 | VGA_drawbackground: |
202 | VGA_drawbackground: |
203 | ; draw all |
203 | ; draw all |
204 | cmp [SCR_MODE],dword 0x12 |
204 | cmp [scr_mode], 0x12 |
205 | jne .end |
205 | jne .end |
206 | pushad |
206 | pushad |
207 | mov esi,[LFBAddress] |
207 | mov esi,[LFBAddress] |
208 | mov edi,VGABasePtr |
208 | mov edi,VGABasePtr |
Line 375... | Line 375... | ||
375 | ret |
375 | ret |
Line 376... | Line 376... | ||
376 | 376 | ||
377 | VGA__putimage: |
377 | VGA__putimage: |
378 | ; ecx = size [x|y] |
378 | ; ecx = size [x|y] |
379 | ; edx = coordinates [x|y] |
379 | ; edx = coordinates [x|y] |
380 | cmp [SCR_MODE],dword 0x12 |
380 | cmp [scr_mode], 0x12 |
381 | jne @f |
381 | jne @f |
382 | pushad |
382 | pushad |
383 | rol edx,16 |
383 | rol edx,16 |
384 | movzx eax,dx |
384 | movzx eax,dx |
Line 395... | Line 395... | ||
395 | VGA_draw_bar: |
395 | VGA_draw_bar: |
396 | ; eax cx |
396 | ; eax cx |
397 | ; ebx cy |
397 | ; ebx cy |
398 | ; ecx xe |
398 | ; ecx xe |
399 | ; edx ye |
399 | ; edx ye |
400 | cmp [SCR_MODE],dword 0x12 |
400 | cmp [scr_mode], 0x12 |
401 | jne @f |
401 | jne @f |
402 | pushad |
402 | pushad |
403 | sub ecx,eax |
403 | sub ecx,eax |
404 | sub edx,ebx |
404 | sub edx,ebx |
405 | and eax,0xffff |
405 | and eax,0xffff |