Rev 7132 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7132 | Rev 7136 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. 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: 7132 $ |
8 | $Revision: 7136 $ |
9 | 9 | ||
10 | struc VBE_VGAInfo { |
10 | struc VBE_VGAInfo { |
11 | .VESASignature dd ? ; char |
11 | .VESASignature dd ? ; char |
Line 82... | Line 82... | ||
82 | cursor_pos_old dw 0 |
82 | cursor_pos_old dw 0 |
83 | home_cursor dw 0 ;current shows rows a table |
83 | home_cursor dw 0 ;current shows rows a table |
84 | end_cursor dw 0 ;end of position current shows rows a table |
84 | end_cursor dw 0 ;end of position current shows rows a table |
85 | scroll_start dw 0 ;start position of scroll bar |
85 | scroll_start dw 0 ;start position of scroll bar |
86 | scroll_end dw 0 ;end position of scroll bar |
86 | scroll_end dw 0 ;end position of scroll bar |
87 | long_v_table equ 9 ;long of visible video table |
87 | long_v_table = 9 ;long of visible video table |
88 | size_of_step equ 10 |
88 | size_of_step = 10 |
89 | scroll_area_size equ (long_v_table-2) |
89 | scroll_area_size = long_v_table - 2 |
90 | int2str: |
90 | int2str: |
91 | dec bl |
91 | dec bl |
92 | jz @f |
92 | jz @f |
93 | xor edx, edx |
93 | xor edx, edx |
94 | div ecx |
94 | div ecx |
Line 752... | Line 752... | ||
752 | int 0x10 |
752 | int 0x10 |
753 | ; LFB |
753 | ; LFB |
754 | mov eax, [es:mi.PhysBasePtr];di+0x28] |
754 | mov eax, [es:mi.PhysBasePtr];di+0x28] |
755 | mov [es:BOOT_LO.lfb], eax |
755 | mov [es:BOOT_LO.lfb], eax |
756 | ; ---- vbe voodoo |
756 | ; ---- vbe voodoo |
757 | BytesPerLine equ 0x10 |
757 | BytesPerLine = 0x10 |
758 | mov ax, [es:di+BytesPerLine] |
758 | mov ax, [es:di+BytesPerLine] |
759 | mov [es:BOOT_LO.pitch], ax |
759 | mov [es:BOOT_LO.pitch], ax |
760 | ; BPP |
760 | ; BPP |
761 | cmp [es:mi.BitsPerPixel], 16 |
761 | cmp [es:mi.BitsPerPixel], 16 |
762 | jne .l0 |
762 | jne .l0 |