Subversion Repositories Kolibri OS

Rev

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

Rev 2434 Rev 2441
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: 2434 $
8
$Revision: 2441 $
9
 
9
 
10
struc VBE_VGAInfo {
10
struc VBE_VGAInfo {
11
  .VESASignature          dd ?    ; char
11
  .VESASignature          dd ?    ; char
Line 724... Line 724...
724
 
724
 
725
        mov     ax, word [es:si+0]           ; resolution X
725
        mov     ax, word [es:si+0]           ; resolution X
Line 726... Line 726...
726
        mov     bx, word [es:si+2]           ; resolution Y
726
        mov     bx, word [es:si+2]           ; resolution Y
727
 
727
 
728
 
728
 
Line 729... Line 729...
729
        mov     word [es:0x900A], ax             ; resolution X
729
        mov     word [es:BOOT_X_RES], ax             ; resolution X
730
        mov     word [es:0x900C], bx             ; resolution Y
730
        mov     word [es:BOOT_Y_RES], bx             ; resolution Y
731
        mov     word [es:0x9008], cx             ; number of mode
731
        mov     word [es:BOOT_VESA_MODE], cx             ; number of mode
732
 
732
 
Line 745... Line 745...
745
        and     cx, 0xfff
745
        and     cx, 0xfff
746
        mov     di, mi;0xa000
746
        mov     di, mi;0xa000
747
        int     0x10
747
        int     0x10
748
        ; LFB
748
        ; LFB
749
        mov     eax, [es:mi.PhysBasePtr];di+0x28]
749
        mov     eax, [es:mi.PhysBasePtr];di+0x28]
750
        mov     [es:0x9018], eax
750
        mov     [es:BOOT_LFB], eax
751
        ; ---- vbe voodoo
751
        ; ---- vbe voodoo
752
        BytesPerLine equ 0x10
752
        BytesPerLine equ 0x10
753
        mov     ax, [es:di+BytesPerLine]
753
        mov     ax, [es:di+BytesPerLine]
754
        mov     [es:0x9001], ax
754
        mov     [es:BOOT_PITCH], ax
755
        ; BPP
755
        ; BPP
756
        cmp     [es:mi.BitsPerPixel], 16
756
        cmp     [es:mi.BitsPerPixel], 16
757
        jne     .l0
757
        jne     .l0
758
        cmp     [es:mi.GreenMaskSize], 5
758
        cmp     [es:mi.GreenMaskSize], 5
759
        jne     .l0
759
        jne     .l0
760
        mov     [es:mi.BitsPerPixel], 15
760
        mov     [es:mi.BitsPerPixel], 15
761
.l0:
761
.l0:
762
        mov     al, byte [es:di+0x19]
762
        mov     al, byte [es:di+0x19]
763
        mov     [es:0x9000], al
763
        mov     [es:BOOT_BPP], al
764
        jmp     .exit
764
        jmp     .exit
Line 765... Line 765...
765
 
765
 
766
.mode0x12_0x13:
766
.mode0x12_0x13:
767
        mov     byte [es:0x9000], 32
767
        mov     byte [es:BOOT_BPP], 32
Line 768... Line 768...
768
        or      dword [es:0x9018], 0xFFFFFFFF; 0x800000
768
        or      dword [es:BOOT_LFB], 0xFFFFFFFF; 0x800000
Line 769... Line 769...
769
 
769
 
Line 786... Line 786...
786
;        pop     es
786
;        pop     es
787
;        mov     [es:0x9014], eax
787
;        mov     [es:0x9014], eax
788
  .exit:
788
  .exit:
789
        ret
789
        ret
Line 790... Line -...
790
 
-
 
791
 
-
 
792
;        mov     dword[es:0x9018],0x000A0000
-
 
793
;        ret
-
 
794
 
790
 
795
;=============================================================================
791
;=============================================================================
796
;=============================================================================
792
;=============================================================================