Protected mode setting of video modes(without BIOS)
Posted: Thu Feb 19, 2009 2:31 pm
Hi, I was very surprised when I went to look at drawing in protected mode http://wiki.osdev.org/Drawing_In_Protected_Mode
It is missing setting video modes without VBE or BIOS(and therefore without messy VBE crap and without real mode)
Well, I happen to have quite a bit of code for setting the video mode by writing directly to the VGA registers. Included is
[*]40x25-text
[*]40x50-text
[*]80x25-text
[*]80x50-text
[*]90x30-text
[*]90x60-text
[*]640x480x2 colors
[*]320x200x4 colors(this is not mode 0x05! there is some differences..)
[*]640x480x16 colors
[*]720x480x16 colors
[*]320x200x256 colors
[*]320x200x256 colors-mode X(I don't remember what that means though)
I also have code for modifying the font used in text modes as well as a 8x16 bitmap font(in C code) and 8x8 bitmap font.
Should I try to add this in the protected mode drawing page or make a new page?
edit:
Btw, this code was adapted from some other source. It was originally designed for real-mode, I changed it so it would work in protected mode.. I think it might be John Fine's or another one of those old OS gurus
It is missing setting video modes without VBE or BIOS(and therefore without messy VBE crap and without real mode)
Well, I happen to have quite a bit of code for setting the video mode by writing directly to the VGA registers. Included is
[*]40x25-text
[*]40x50-text
[*]80x25-text
[*]80x50-text
[*]90x30-text
[*]90x60-text
[*]640x480x2 colors
[*]320x200x4 colors(this is not mode 0x05! there is some differences..)
[*]640x480x16 colors
[*]720x480x16 colors
[*]320x200x256 colors
[*]320x200x256 colors-mode X(I don't remember what that means though)
I also have code for modifying the font used in text modes as well as a 8x16 bitmap font(in C code) and 8x8 bitmap font.
Should I try to add this in the protected mode drawing page or make a new page?
edit:
Btw, this code was adapted from some other source. It was originally designed for real-mode, I changed it so it would work in protected mode.. I think it might be John Fine's or another one of those old OS gurus