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.
VGA code
Re:VGA code
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.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.)