VESA - If the BIOS can do it, why not us?

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
durand
Member
Member
Posts: 193
Joined: Wed Dec 21, 2005 12:00 am
Location: South Africa
Contact:

VESA - If the BIOS can do it, why not us?

Post by durand »

Hey,

The BIOS seems to be able to set VESA mode no matter what card is running in the system.

Therefore, there must be a standard way in which the BIOS addresses the video card and a standard way in which it tells it to switch modes? ...

So all video cards must have a standard VESA interface.

So, why can't we do the same thing? Through the same interface? With the same registers?

CPU mode should be irrelevant because it's talking straight to the card.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:VESA - If the BIOS can do it, why not us?

Post by Pype.Clicker »

yes, there is a standard interface: the BIOS finds the "magic sequence" at the end of video ROM and calls a rom-bootstrap function that register ROM-provided service as entry point for int 0x10...

That actually means that the code under "int 0x10" is not some mother board code ... it's some code that is shipped within your video card and mapped in memory by the BIOS ... Since that code has been designed to run in realmode, it *does* matters whether you're in protected mode or not.
durand
Member
Member
Posts: 193
Joined: Wed Dec 21, 2005 12:00 am
Location: South Africa
Contact:

Re:VESA - If the BIOS can do it, why not us?

Post by durand »

oh darn. okay :) thanks for the info.
Post Reply