VGA code

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.
Curufir

Re:VGA code

Post by Curufir »

http://web.inter.nl.net/hcc/S.Weijgers/FreeVGA/vga/vga.htm

That page contains links to all the information you will need to be able to program a VGA card in protected mode. It doesn't come with examples however which means that (*gasp*) you'll actually have to figure out how to use the information instead of copy/pasting it.
Chris Giese

Re:VGA code

Post by Chris Giese »

Therx wrote: If you want code go to my.execpc.com/~geezer/osd/graphics/modes.c it looks complicated but if you strip it down to only the mode you want it becomes quite short. (I've only started looking through it and have already simplified it to 225 odd lines - from over 1000 - which I can learn from.)
The register dump (the g_640x480x16 array) and the write_regs() function should be all that FS2Death needs. Most of the other code is used to draw an 'X' on the screen in different graphics modes, and to demonstrate text mode.
FS2Death

Re:VGA code

Post by FS2Death »

http://www.0xfi.com/oslib/topx.html

I think that I answered my own question this time...
Post Reply