Page 1 of 1
Setting Video Mode in Protected-Mode
Posted: Sat Jul 27, 2002 5:15 pm
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.
Re:Setting Video Mode in Protected-Mode
Posted: Sat Jul 27, 2002 6:11 pm
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).