Entering VGA in protected mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
RevivalDBM
Member
Member
Posts: 34
Joined: Sun Aug 03, 2008 5:38 am

Entering VGA in protected mode

Post by RevivalDBM »

Hello,
I was wondering, is it possible to enter VGA in protected mode? I've heard of several methods, including temporarily dropping back to real mode, and running a v8086 task (how would one do that?), are there any other methods, and which do you think would be best?
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: Entering VGA in protected mode

Post by salil_bhagurkar »

'Enter VGA' -- You mean use the VGA functions provided by your BIOS i guess.. Yes it is possible to do that. I drop to real mode and come back in my os (that was when i was making a stupid GUI). But this is a really bad idea if you are using the VGA system frequently.

Optionally you could do what linux does. It sets up the video information and video mode while it is in the real mode at boot time. Using a v8086 task is also feasible. For that you will have to read up on v8086 from the 386 manuals. You can search this post or google for v8086.

Besides you could also directly use the VGA registers to do stuff. Refer to tauron vga utilities (google it)...
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Entering VGA in protected mode

Post by Dex »

User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Entering VGA in protected mode

Post by Combuster »

Try the wiki: VGA Hardware
EDIT: and please use the search function as this question has been asked many times before.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Entering VGA in protected mode

Post by egos »

RevivalDBM wrote:which do you think would be best?
I'm programming video directly. It is just necessary to check existng VGA compatible video card and not to use other video drivers, because they may support additional features for vga modes.
If you have seen bad English in my words, tell me what's wrong, please.
Post Reply