flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > S3 trio VESA bug |
Author |
|
DennisCGc 03 Oct 2004, 11:00
You know, I have the same problem too...
It looks like the some parts will overlap each other (AFAIK).. I indeed would like to see a patch too.... |
|||
03 Oct 2004, 11:00 |
|
Wildwest 07 Oct 2004, 21:30
You can rewrite set_bank in VESA12.INC:
set_bank: cli cmp al,[0xfff2] je retsb mov [0xfff2],al push ax push cx push dx mov dx,3D4h mov ch,al ; Save value for later and al,0Fh ; Mask off all but bottom 4 bits mov cl,al mov ax,4838h ; Enable extended registers out dx,ax mov al,31h ; Index of S3R1 out dx,al inc dl in al,dx ; Read value of S3R1 or al,9 ; Set bits 0 and 3 out dx,al ; Write value back again dec dl mov al,35h ; Index of S3R5 out dx,al inc dl in al,dx ; Read value of CR51 and al,0xC0 or al,cl and ch,0xF0 ; [S3_mask] ; Mask out appropriate bits shr ch,2 or al,ch ; Or in top 2 bits of bank number out dx,al ; Write the value back again dec dl mov ax,0039h ; Lock system control registers out dx,ax @@S32: mov ax,0038h ; Disable extended registers out dx,ax pop dx pop cx pop ax retsb: ret This code is not mine. I take it from menuetos.org.ru some months ago. Good luck! |
|||
07 Oct 2004, 21:30 |
|
compilax 22 Oct 2004, 05:47
In 0.78pre3, VESA12 is just a few comments describing code that is no longer present. Can I in some way replace VESA20.INC by an old VESA12.INC (and replace labels with their 2.0 counterparts) then apply that patch? Has 1.2 support been moved to another source file or completely abandoned? Why does it still show VESA 1.2 modes on boot?
|
|||
22 Oct 2004, 05:47 |
|
Tolle 22 Oct 2004, 14:06
Compilax, are you sure you are talking about the official 0.78pre3 menuetos.org distribution?
Now, who needs a new pair of glasses? |
|||
22 Oct 2004, 14:06 |
|
Madis731 22 Oct 2004, 20:18
Yep, the VESA12.INC is absolutely clean of any code. They are
offering you a chance to write your own driver there |
|||
22 Oct 2004, 20:18 |
|
ASHLEY4 26 Oct 2004, 15:28
I read some thing in allegro, that there is a bug seting up vesa on S3 trio.
To get round it you setup vga mode 13h and then set vesa up and it works normal. Not tryed it my self. \\\\||//// (@@) ASHLEY4. |
|||
26 Oct 2004, 15:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.