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.
Vga prgramming staff
Vga prgramming staff
I like the Dream of the Red Chamber.
Re: Vga prgramming staff
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/
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.
Re: Vga prgramming staff
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.
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 ...