Odd video modes

Programming, for all ages and all languages.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

thanks :)
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

No problem, I often reference it myself!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

well how can i choose which one i want 01h = G or T how can i choose which mode i want, can you give me an example?
last question because i want to release my first real mode os tommarow and i will use this to my advantage
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

You can't use a graphics mode as a text mode, trust me, it just doesn't work. You'd have to write your own 8x8 font so you could do 80x60 resolution, but that would mean a lot of hard work with scrolling and everything. You couldn't use your text mode routines anymore!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

i know that, i just want to know why there are g and t letters there, do they have a purpose, but alright.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

G means they're a graphics mode, T means text mode.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

darn, i would of never of had seen that right in front of me, why couldnt ralph put that on there, as definitions for the letters. he probably did, i just never knew. i tried this text mdoe last night, but every letter printed to the screen was in a different color every time, it was awsome!!!! but i knew no one would ever want it that way

btw did you see the post combuster left, that was funny, i askd him to put it back up so i could save it, but like combuster, he ignored me :| :(
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

Heh, I think I have that pic somewhere..
Attachments
Here it is!
Here it is!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

what happen, did he catch you asking an unintelligent question, and then you got the "i asked the wrong question" response award, i am a "i asked the wrong question" star. ahh im kidding, let me guess... you found it at google
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Odd video modes

Post by Love4Boobies »

GhostXoPCorp wrote:btw did you see the post combuster left, that was funny, i askd him to put it back up so i could save it, but like combuster, he ignored me :| :(
Then you've learned nothing from the picture. Google it! :roll: :)
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

Love4Boobies wrote:Then you've learned nothing from the picture. Google it! :roll: :)
ROFL!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Odd video modes

Post by VolTeK »

here google is god! alright, i will use google more, there i have learned my lesson :lol:
CPLH
Member
Member
Posts: 28
Joined: Thu Jan 08, 2009 1:31 pm
Location: New Jersey, USA
Contact:

Re: Odd video modes

Post by CPLH »

hm.. how did you get into an 80x50 resolution?
With VESA, 80x60 text is the smallest.. http://lrs.uni-passau.de/support/doc/in ... B-0259.HTM
With the usual regular documented maximum of 0x13 resolution using 0x10 interrupt, the maximum is 80x30 text within VGA.

So how did you get into 80x50?

Did you manually reprogram the VGA registers?

Veniamin

Edit: Wow.. I just realized that there were more pages on this post.
Have a plan.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Odd video modes

Post by jal »

CPLH wrote:Did you manually reprogram the VGA registers?
Iirc, the 80x50 can be set from BIOS (at least, the 8x8 character set needed is in BIOS). To get 80x60 or 90x60, you have to program the VGA registers.


JAL
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Odd video modes

Post by Troy Martin »

To get 80x50, set up regular 80x25 text mode and then use ax=1112h to set up the 8x8 character font, effectively doubling the vertical text resolution.

You can also get 80x30 in real mode fairly easy by activating 640x480 graphics mode and adding a "mov bl,07h" statement before every usage of int 10h ah=0Eh. Haven't tried activating 8x8 in graphics mode though!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply