video mode

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
slacker

video mode

Post by slacker »

hi. i have beensearching the internet for information about switching from text mode to video mode and i have nt been able to find any web sites that really help. i have found bits and pieces of information like A000:0000 is involved and to switch to video mode u can use interrupts or ports i/o. if anyone would know any good web sites and progamming in video mode i would appreciate it. thank you
slacker

Re:video mode

Post by slacker »

umm. ok. that didnt do much. anyone thing else on like how to enter this mode and how video memory at a000 works?
Dav

Re:video mode

Post by Dav »

If you are in Real Mode it is quite easy to set the video mode, just call interrupt 0x10, ah=0x00 (set video mode function), al = desired video mode.

You can find the different video modes at:
http://www.ctyme.com/intr/rb-0069.htm#Table10

0x13 is the VGA 320x200x8bit graphical video mode.

However it is more than likely that you are in protected mode, in that case i can't help you.

Each byte in the video memory at 0xA0000 represents a single pixel on the screen. The value of this byte is an index into a color palette.

Great article on Video Mode 0x13:
http://www.geocities.com/SiliconValley/Park/8933/vga.html

Hope this helped.
Post Reply