Hi.
How can I switch the video mode out of the text mode when I want to implement a pixel-based GUI. Can I do it throug outportb()? If it's possible, how to do it (what bytes to which device)? (I'm using Voodo3 if that matters)
Switching Graphics Mode
Re:Switching Graphics Mode
The only standard method for direct IO is VGA, it's old and supposedly difficult to program - that and it only supports up to a maximum of 640x480 with 16 colours.
The better method is VESA which will let you use practically any mode that the card supports but can only be used in real mode so will require you either switch in and out to run VESA or setup a V8086 monitor (switching in and out could be really painful if you use a higher half kernel as well)
If you want more information than see the FAQ.
The better method is VESA which will let you use practically any mode that the card supports but can only be used in real mode so will require you either switch in and out to run VESA or setup a V8086 monitor (switching in and out could be really painful if you use a higher half kernel as well)
If you want more information than see the FAQ.
Re:Switching Graphics Mode
You keep asking the same ? , when you have bean given the answer, here is all the info you need for your card
http://homepage.swissonline.ch/tinyasm/v3.htm
You are lucky that someones done most of the work for you and if you want it in C then hard luck as OS Dev does not work like that, you find info where you can and think yourself lucky >:( .
http://homepage.swissonline.ch/tinyasm/v3.htm
You are lucky that someones done most of the work for you and if you want it in C then hard luck as OS Dev does not work like that, you find info where you can and think yourself lucky >:( .