Rev 1703 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1703 | Rev 1941 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 1703 $ |
8 | $Revision: 1941 $ |
9 | 9 | ||
10 | struc VBE_VGAInfo { |
10 | struc VBE_VGAInfo { |
11 | .VESASignature dd ? ; char |
11 | .VESASignature dd ? ; char |
Line 113... | Line 113... | ||
113 | ret |
113 | ret |
Line 114... | Line 114... | ||
114 | 114 | ||
115 | 115 | ||
116 | ;------------------------------------------------------- |
- | |
Line 117... | Line 116... | ||
117 | print_vesa_info: |
116 | ;------------------------------------------------------- |
118 | _setcursor 5,2 |
117 | print_vesa_info: |
119 | 118 | ||
120 | mov [es:vi.VESASignature],'VBE2' |
119 | mov [es:vi.VESASignature],'VBE2' |
Line 134... | Line 133... | ||
134 | jne $ |
133 | jne $ |
135 | cmp [es:vi.VESAVersion],0x0100 |
134 | cmp [es:vi.VESAVersion],0x0100 |
136 | jb $ |
135 | jb $ |
Line 137... | Line 136... | ||
137 | 136 | ||
138 | .vesaok2: |
- | |
139 | mov ax,[es:vi.VESAVersion] |
- | |
140 | add ax,'00' |
- | |
141 | - | ||
142 | mov [s_vesa.ver], ah |
- | |
143 | mov [s_vesa.ver+2], al |
- | |
144 | mov si,s_vesa |
- | |
145 | call printplain |
- | |
146 | - | ||
147 | _setcursor 4,2 |
- | |
148 | mov si,word[es:vi.OemStringPtr] |
- | |
149 | mov di,si |
- | |
150 | - | ||
151 | push ds |
- | |
152 | mov ds,word[es:vi.OemStringPtr+2] |
- | |
153 | call printplain |
- | |
Line 154... | Line 137... | ||
154 | pop ds |
137 | .vesaok2: |
155 | 138 | ||
Line 156... | Line 139... | ||
156 | ret |
139 | ret |
Line 222... | Line 205... | ||
222 | check_first_parm: |
205 | check_first_parm: |
223 | mov si,word [preboot_graph] |
206 | mov si,word [preboot_graph] |
224 | test si,si |
207 | test si,si |
225 | jnz .no_zero ;if no zero |
208 | jnz .no_zero ;if no zero |
226 | .zerro: |
209 | .zerro: |
- | 210 | mov word[preboot_graph], ax |
|
Line 227... | Line 211... | ||
227 | 211 | ||
228 | mov ax,1024 |
212 | mov ax,1024 |
229 | mov bx,768 |
213 | mov bx,768 |
230 | mov si,modes_table |
214 | mov si,modes_table |
Line 293... | Line 277... | ||
293 | ret |
277 | ret |
294 | .exit: or ax,-1 |
278 | .exit: or ax,-1 |
295 | ret |
279 | ret |
Line 296... | Line -... | ||
296 | - | ||
297 | - | ||
298 | - | ||
299 | ;----------------------------------------------------------------------------- |
- | |
300 | ;Clear area of current video page (0xb800) |
- | |
301 | ;clear_vmodes_table: |
- | |
302 | ; pusha |
- | |
303 | ; draw frames |
- | |
304 | ; push es |
- | |
305 | ; push 0xb800 |
- | |
306 | ; pop es |
- | |
307 | ; mov di,1444 |
- | |
308 | ; xor ax,ax |
- | |
309 | ; mov ah, 1*16+15 |
- | |
310 | ; mov cx,70 |
- | |
311 | ; mov bp,12 |
- | |
312 | ;.loop_start: |
- | |
313 | ; rep stosw |
- | |
314 | ; mov cx,70 |
- | |
315 | ; add di,20 |
- | |
316 | ; dec bp |
- | |
317 | ; jns .loop_start |
- | |
318 | ; pop es |
- | |
319 | ; popa |
- | |
320 | ; ret |
280 | |
Line 321... | Line 281... | ||
321 | 281 | ||
322 | ;----------------------------------------------------------------------------- |
282 | ;----------------------------------------------------------------------------- |
323 | 283 |