Subversion Repositories Kolibri OS

Rev

Rev 1635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1635 Rev 2434
Line 91... Line 91...
91
        xor     edx,edx
91
        xor     edx, edx
92
        div     ecx
92
        div     ecx
93
        push    edx
93
        push    edx
94
        call    int2str
94
        call    int2str
95
        pop     eax
95
        pop     eax
-
 
96
    @@:
96
    @@: or      al,0x30
97
        or      al, 0x30
97
        mov     [ds:di],al
98
        mov     [ds:di], al
98
        inc     di
99
        inc     di
99
        ret
100
        ret
Line 100... Line 101...
100
 
101
 
Line 104... Line 105...
104
        xor     edx,edx
105
        xor     edx, edx
105
        div     ecx
106
        div     ecx
106
        push    edx
107
        push    edx
107
        call    int2strnz
108
        call    int2strnz
108
        pop     eax
109
        pop     eax
-
 
110
    @@:
109
    @@: or      al,0x30
111
        or      al, 0x30
110
        mov     [es:di],al
112
        mov     [es:di], al
111
        inc     di
113
        inc     di
112
        ret
114
        ret
Line 113... Line 115...
113
 
115
 
Line 241... Line 243...
241
 
243
 
242
        cmp     [s_vesa.ver],'2'
244
        cmp     [s_vesa.ver], '2'
Line 243... Line 245...
243
        jb      .lp1
245
        jb      .lp1
-
 
246
 
244
 
247
        or      cx, 0x4000 ; use LFB
245
        or      cx,0x4000  ; use LFB
248
.lp1:
246
.lp1:	mov     [es:bx+6],cx               ; +6 : mode number
249
        mov     [es:bx+6], cx              ; +6 : mode number
247
        movzx   ax,byte [es:mi.BitsPerPixel]
250
        movzx   ax, byte [es:mi.BitsPerPixel]
Line 248... Line 251...
248
        mov     word [es:bx+8],ax               ; +8 : bits per pixel
251
        mov     word [es:bx+8], ax              ; +8 : bits per pixel
Line 400... Line 403...
400
        mov     word [preboot_graph],si
403
        mov     word [preboot_graph], si
401
        mov     ax,si
404
        mov     ax, si
Line 402... Line 405...
402
 
405
 
Line -... Line 406...
-
 
406
        mov     ecx, long_v_table
403
        mov     ecx,long_v_table
407
 
404
 
408
.loop:
405
.loop:  add     ax,size_of_step
409
        add     ax, size_of_step
406
        cmp     ax,word [end_cursor]
410
        cmp     ax, word [end_cursor]
407
        jae     .next_step
411
        jae     .next_step
408
        loop    .loop
412
        loop    .loop
Line 433... Line 437...
433
        jne     .next
437
        jne     .next
434
        cmp     word [es:si+8],32
438
        cmp     word [es:si+8], 32
435
        je      .ok
439
        je      .ok
436
        cmp     word [es:si+8],24
440
        cmp     word [es:si+8], 24
437
        je      .ok
441
        je      .ok
-
 
442
.next:
438
.next:  add     si,size_of_step
443
        add     si, size_of_step
439
        cmp     word [es:si],-1
444
        cmp     word [es:si], -1
440
        je      .exit
445
        je      .exit
441
        jmp     .loops
446
        jmp     .loops
-
 
447
.ok:
442
.ok:    xor     ax,ax        
448
        xor     ax, ax
443
	ret
449
        ret
-
 
450
.exit:
444
.exit:  or	ax,-1
451
        or      ax, -1
445
	ret
452
        ret
Line 446... Line 453...
446
 
453
 
Line 482... Line 489...
482
        push    si
489
        push    si
483
        pop     word [home_cursor]
490
        pop     word [home_cursor]
484
        jmp     .ok
491
        jmp     .ok
Line -... Line 492...
-
 
492
 
485
 
493
 
486
 
494
.low:
487
.low:   sub     cx,size_of_step
495
        sub     cx, size_of_step
488
        cmp     cx,modes_table
496
        cmp     cx, modes_table
489
        jb      .ok
497
        jb      .ok
490
        push    cx
498
        push    cx