Setting graphics mode in ASM using the OUT function

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
MattCarpenter

Setting graphics mode in ASM using the OUT function

Post by MattCarpenter »

I realized that you cant use VESA to set the graphics mode in bochs  (which I use to test my kernel), so I was wondering how to set the video mode in ASM without interrupts (using the out function). I'm aiming to get 640x480 res. with 256 color if possible
carbonBased

RE:Setting graphics mode in ASM using the OUT function

Post by carbonBased »

Use Vesa through a VM86 Task... it's easier ;)

640x480x8bpp is a non-vga mode, and therefore would require separate support for each svga chipset if you wanna go about it directly.

640x480x4bpp is a vga mode, and you can easily support this on all VGA cards.  There's information about doing this VGADOC, which you can find around the 'net.  It's not easy, though... Vesa's probably still your best bet :)

Jeff
Post Reply