Rev 2288 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2288 | Rev 2407 | ||
---|---|---|---|
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: 2288 $ |
8 | $Revision: 2407 $ |
9 | 9 | ||
10 | struc VBE_VGAInfo { |
10 | struc VBE_VGAInfo { |
11 | .VESASignature dd ? ; char |
11 | .VESASignature dd ? ; char |
Line 241... | Line 241... | ||
241 | mov [es:bx+2], ax ; +2[2] : resolution Y |
241 | mov [es:bx+2], ax ; +2[2] : resolution Y |
242 | mov ax, [es:mi.ModeAttributes] |
242 | mov ax, [es:mi.ModeAttributes] |
243 | mov [es:bx+4], ax ; +4[2] : attributes |
243 | mov [es:bx+4], ax ; +4[2] : attributes |
Line 244... | Line 244... | ||
244 | 244 | ||
245 | cmp [s_vesa.ver], '2' |
245 | cmp [s_vesa.ver], '2' |
- | 246 | ; jb .lp1 |
|
Line 246... | Line 247... | ||
246 | jb .lp1 |
247 | jb @f ; We do not use Vesa 1.2 mode is now |
247 | 248 | ||
248 | or cx, 0x4000 ; use LFB |
249 | or cx, 0x4000 ; use LFB |
249 | .lp1: |
250 | .lp1: |
Line 733... | Line 734... | ||
733 | je .mode0x12_0x13 |
734 | je .mode0x12_0x13 |
734 | cmp cx, 0x13 |
735 | cmp cx, 0x13 |
735 | je .mode0x12_0x13 |
736 | je .mode0x12_0x13 |
Line 736... | Line 737... | ||
736 | 737 | ||
737 | 738 | ||
Line 738... | Line 739... | ||
738 | cmp byte [s_vesa.ver], '2' |
739 | ; cmp byte [s_vesa.ver], '2' |
Line 739... | Line 740... | ||
739 | jb .vesa12 |
740 | ; jb .vesa12 |
740 | 741 | ||
Line 767... | Line 768... | ||
767 | or dword [es:0x9018], 0xFFFFFFFF; 0x800000 |
768 | or dword [es:0x9018], 0xFFFFFFFF; 0x800000 |
Line 768... | Line 769... | ||
768 | 769 | ||
Line 769... | Line 770... | ||
769 | 770 | ||
770 | ; VESA 1.2 PM BANK SWITCH ADDRESS |
- | |
771 | - | ||
772 | .vesa12: |
771 | ; VESA 1.2 PM BANK SWITCH ADDRESS |
773 | 772 | ||
774 | 773 | ;.vesa12: |
|
775 | mov ax, 0x4f0A |
774 | ; mov ax, 0x4f0A |
776 | xor bx, bx |
775 | ; xor bx, bx |
777 | int 0x10 |
776 | ; int 0x10 |
778 | xor eax, eax |
777 | ; xor eax, eax |
779 | xor ebx, ebx |
778 | ; xor ebx, ebx |
780 | mov ax, es |
779 | ; mov ax, es |
781 | shl eax, 4 |
780 | ; shl eax, 4 |
782 | mov bx, di |
781 | ; mov bx, di |
783 | add eax, ebx |
782 | ; add eax, ebx |
784 | movzx ebx, word[es:di] |
783 | ; movzx ebx, word[es:di] |
785 | add eax, ebx |
784 | ; add eax, ebx |
786 | push 0x0000 |
785 | ; push 0x0000 |
787 | pop es |
786 | ; pop es |
Line 788... | Line 787... | ||
788 | mov [es:0x9014], eax |
787 | ; mov [es:0x9014], eax |