Setting Video Mode in Protected-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
kernel

Setting Video Mode in Protected-Mode

Post by kernel »

im tired of real mode, and from what ive read, pmode kicks @$$, so I moved over to pmode, but I am unable to set the video mode in it! when I try to set the vid. mode, the computer crashes or resets. Whats up with that? My code is the normal, 2 lines of code that are standerd for setting the video mode, so I have no idea what is going on here.
crazybuddha

Re:Setting Video Mode in Protected-Mode

Post by crazybuddha »

simply put, you can't use the bios in pmode. Any functions that do real mode addressing will blow up. Either have to drop into V86 or communicate directly with the hardware.

Although V86 is the more practical solution, since you will have to write drivers eventually for your OS, you may as well programming the ports or mapped memory (whichever applies).
Post Reply