Subversion Repositories Kolibri OS

Rev

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

Rev 2434 Rev 2441
Line 686... Line 686...
686
 
686
 
687
        mov     ax, word [es:si+0]           ; resolution X
687
        mov     ax, word [es:si+0]           ; resolution X
Line 688... Line 688...
688
        mov     bx, word [es:si+2]           ; resolution Y
688
        mov     bx, word [es:si+2]           ; resolution Y
689
 
689
 
690
 
690
 
Line 691... Line 691...
691
        mov     word [es:0x900A], ax             ; resolution X
691
        mov     word [es:BOOT_X_RES], ax             ; resolution X
692
        mov     word [es:0x900C], bx             ; resolution Y
692
        mov     word [es:BOOT_Y_RES], bx             ; resolution Y
693
        mov     word [es:0x9008], cx             ; number of mode
693
        mov     word [es:BOOT_VESA_MODE], cx     ; number of mode
694
 
694
 
Line 707... Line 707...
707
        and     cx, 0xfff
707
        and     cx, 0xfff
708
        mov     di, mi;0xa000
708
        mov     di, mi;0xa000
709
        int     0x10
709
        int     0x10
710
        ; LFB
710
        ; LFB
711
        mov     eax, [es:mi.PhysBasePtr];di+0x28]
711
        mov     eax, [es:mi.PhysBasePtr];di+0x28]
712
        mov     [es:0x9018], eax
712
        mov     [es:BOOT_LFB], eax
713
        ; ---- vbe voodoo
713
        ; ---- vbe voodoo
714
        BytesPerLine equ 0x10
714
        BytesPerLine equ 0x10
715
        mov     ax, [es:di+BytesPerLine]
715
        mov     ax, [es:di+BytesPerLine]
716
        mov     [es:0x9001], ax
716
        mov     [es:BOOT_PITCH], ax
717
        ; BPP
717
        ; BPP
718
        cmp     [es:mi.BitsPerPixel], 16
718
        cmp     [es:mi.BitsPerPixel], 16
719
        jne     .l0
719
        jne     .l0
720
        cmp     [es:mi.GreenMaskSize], 5
720
        cmp     [es:mi.GreenMaskSize], 5
721
        jne     .l0
721
        jne     .l0
722
        mov     [es:mi.BitsPerPixel], 15
722
        mov     [es:mi.BitsPerPixel], 15
723
.l0:
723
.l0:
724
        mov     al, byte [es:di+0x19]
724
        mov     al, byte [es:di+0x19]
725
        mov     [es:0x9000], al
725
        mov     [es:BOOT_BPP], al
726
        jmp     .exit
726
        jmp     .exit
Line 727... Line 727...
727
 
727
 
728
.mode0x12_0x13:
728
.mode0x12_0x13:
729
        mov     byte [es:0x9000], 32
729
        mov     byte [es:BOOT_BPP], 32
Line 730... Line 730...
730
        or      dword [es:0x9018], 0xFFFFFFFF; 0x800000
730
        or      dword [es:BOOT_LFB], 0xFFFFFFFF; 0x800000
Line 731... Line 731...
731
 
731
 
Line 751... Line 751...
751
        mov     [es:0x9014], eax
751
        mov     [es:0x9014], eax
752
  .exit:
752
  .exit:
753
        ret
753
        ret
Line 754... Line -...
754
 
-
 
755
 
-
 
756
;        mov     dword[es:0x9018],0x000A0000
-
 
757
;        ret
754
 
758
 
755
 
759
;=============================================================================
756
;=============================================================================