Subversion Repositories Kolibri OS

Rev

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

Rev 5167 Rev 5169
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2014. 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: 5167 $
8
$Revision: 5169 $
9
 
9
 
10
struc VBE_VGAInfo {
10
struc VBE_VGAInfo {
11
  .VESASignature          dd ?    ; char
11
  .VESASignature          dd ?    ; char
Line 394... Line 394...
394
;        mov     ax,modes_table
394
;        mov     ax,modes_table
395
;        mov     word [cursor_pos],ax
395
;        mov     word [cursor_pos],ax
396
;        mov     word [home_cursor],ax
396
;        mov     word [home_cursor],ax
397
;        mov     word [preboot_graph],ax
397
;        mov     word [preboot_graph],ax
398
;SET default video of mode first probe will fined a move of work 1024x768@32
398
;SET default video of mode first probe will fined a move of work 1024x768@32
-
 
399
        mov     cx, 32
399
 
400
  .find_mode:
400
        mov     ax, 1024
401
        mov     ax, 1024
401
        mov     bx, 768
402
        mov     bx, 768
402
        mov     si, modes_table
403
        mov     si, modes_table
403
        call    .loops
404
        call    .loops
404
        test    ax, ax
405
        test    ax, ax
Line 413... Line 414...
413
        mov     bx, 480
414
        mov     bx, 480
414
        mov     si, modes_table
415
        mov     si, modes_table
415
        call    .loops
416
        call    .loops
416
        test    ax, ax
417
        test    ax, ax
417
        jz      .ok_found_mode
418
        jz      .ok_found_mode
-
 
419
        sub     cx, 8
-
 
420
        jnz     .find_mode
Line 418... Line 421...
418
 
421
 
419
        mov     si, modes_table
422
        mov     si, modes_table
420
if ~ defined extended_primary_loader
423
if ~ defined extended_primary_loader
Line 476... Line 479...
476
.loops:
479
.loops:
477
        cmp     ax, word [es:si]
480
        cmp     ax, word [es:si]
478
        jne     .next
481
        jne     .next
479
        cmp     bx, word [es:si+2]
482
        cmp     bx, word [es:si+2]
480
        jne     .next
483
        jne     .next
481
        cmp     word [es:si+8], 32
484
        cmp     cx, word [es:si+8]
482
        je      .ok
485
        jne     .next
483
        cmp     word [es:si+8], 24
-
 
484
        je      .ok
486
        xor     ax, ax
485
        cmp     word [es:si+8], 16
-
 
486
        je      .ok
487
        ret
487
.next:
488
.next:
488
        add     si, size_of_step
489
        add     si, size_of_step
489
        cmp     word [es:si], -1
490
        cmp     word [es:si], -1
490
        je      .exit
491
        je      .exit
491
        jmp     .loops
492
        jmp     .loops
492
.ok:
-
 
493
        xor     ax, ax
-
 
494
        ret
-
 
495
.exit:
493
.exit:
496
        or      ax, -1
494
        or      ax, -1
497
        ret
495
        ret