Vga prgramming staff

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
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Vga prgramming staff

Post by yaocong »

Could anybody do me a favour :1,how to change video mode directly without using bios in pmode (particularly,changing to 640*480*16).and 2:how to write a pixel derectly in pmode to the screen in 640*480*16 mode.

Thank you.
I like the Dream of the Red Chamber.
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: Vga prgramming staff

Post by JAAman »

to change modes (any standard VGA mode):
use the VGA control registers:

this was the first result in google programing vga registers
http://www.osdever.net/FreeVGA/vga/vga.htm


bonifide osdever has lots of useful tutorials heres a link:
http://www.osdever.net/
Last edited by JAAman on Wed Oct 19, 2005 11:00 pm, edited 1 time in total.
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Re: Vga prgramming staff

Post by yaocong »

Thank you very much!
I like the Dream of the Red Chamber.
User avatar
Daedalus
Member
Member
Posts: 74
Joined: Sun Oct 16, 2005 11:00 pm
Location: Australia
Contact:

Re: Vga prgramming staff

Post by Daedalus »

If you google TabOS you can find an open source OS that I used to learn how start graphics mode in PMode.

See the file, vga.c I think. You'll have to poke around the include files to find defines and structures needed, but all the code and functions are in one place.
Myth OS is awaiting a revival ...
Post Reply