OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 2:29 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Protected mode setting of video modes(without BIOS)
PostPosted: Thu Feb 19, 2009 2:31 pm 
Offline
Member
Member

Joined: Thu Jul 07, 2005 11:00 pm
Posts: 1546
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

_________________
My new NEW blag


Top
 Profile  
 
 Post subject: Re: Protected mode setting of video modes(without BIOS)
PostPosted: Thu Feb 19, 2009 3:47 pm 
Offline
Member
Member

Joined: Sun Nov 09, 2008 2:55 am
Posts: 524
Location: Pennsylvania, USA
That stuff is on the VGA page: http://wiki.osdev.org/VGA_Hardware


Top
 Profile  
 
 Post subject: Re: Protected mode setting of video modes(without BIOS)
PostPosted: Thu Feb 19, 2009 5:42 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
I added a link and updated the page - apparently "writing a driver" was assumed to be too obvious to mention.

As for Mode X - it has two (mixed) meanings. It either refers to
- Any planar 256 color mode (i.e. unchained with access to 256k video memory)
- Specifically the 320x240x8 mode, again unchained

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group