Odd video modes

Programming, for all ages and all languages.
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 »

Same here, someone'll complain about it if we don't! :mrgreen:
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
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Odd video modes

Post by Love4Boobies »

Can it be any more easy on the eye than just one pixel? :lol:
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Odd video modes

Post by jal »

I use 90x60, afaik the highest text mode resolution on a standard VGA (720x480).


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 »

I remember using DOSSHELL.EXE at 125 by something text mode. On standard VGA.
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
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Odd video modes

Post by piranha »

My OS does 100x75.
800x600 vesa mode with an 8x8 font. There are a few bugs to work out, sometimes characters aren't displayed if typed too fast, and scrolling is horrendously slow.

Actually, thats a question, if someone cares to answer, is there a faster way to scroll in such a video mode?

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
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 can search an find it, i cant guarantee i will find it though
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Odd video modes

Post by Combuster »

If you know where to look... :D
VBE standard wrote: 4.10. Function 07h - Set/Get Display Start

This required function selects the pixel to be displayed in the upper
left corner of the display. This function can be used to pan and
scroll around logical screens that are larger than the displayed
screen. This function can also be used to rapidly switch between two
different displayed screens for double buffered animation effects.

Input: AX = 4F07h VBE Set/Get Display Start Control
BH = 00h Reserved and must be 00h
BL = 00h Set Display Start
= 01h Get Display Start
= 80h Set Display Start during Vertical
Retrace
CX = First Displayed Pixel In Scan Line
(Set Display Start only)
DX = First Displayed Scan Line (Set Display Start
only)

Output: AX = VBE Return Status
BH = 00h Reserved and will be 0 (Get Display Start
only)
CX = First Displayed Pixel In Scan Line (Get Display
Start only)
DX = First Displayed Scan Line (Get Display
Start only)

Note: This function is also valid in text modes. To use this
function in text mode, the application should convert the character
coordinates to pixel coordinates by using XCharSize and YCharSize
returned in the ModeInfoBlock. If the requested Display Start
coordinates do not allow for a full page of video memory or the
hardware does not support memory wrapping, the Function call should
fail and no changes should be made. As a general case, if a requested
Display Start is not available, fail the Function call and make no
changes.
"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 ]
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 »

now where did you find that? no wait, i know you wont tell me
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Odd video modes

Post by Combuster »

no wait, i know you wont tell me
I already did, previous post :shock:
"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 ]
User avatar
Blue
Member
Member
Posts: 31
Joined: Thu Aug 02, 2007 6:34 am
Location: on the stack

Re: Odd video modes

Post by Blue »

GhostXoPCorp wrote:now where did you find that? no wait, i know you wont tell me
He (most likely) found it using google. If you would search for either "VBE standard" or a part of the text you will find it (I found it that way in under 10 seconds) and no I wont provide you with a direct link. Try searching a bit and reading the specifications, because if you expect everyone to serve everything for you, you wont get far.

Edit: Actually I served it more or less for you, but I am also done with trying to help you until you show some more progress, and some more effort with what you are doing.

Blue
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 »

(troll removed - Combuster)
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Odd video modes

Post by jal »

piranha wrote:My OS does 100x75.
800x600 vesa mode with an 8x8 font. There are a few bugs to work out, sometimes characters aren't displayed if typed too fast, and scrolling is horrendously slow.
800x600 VESA is a graphics mode though, indeed making scrolling rather slow (if you are scrolling by copying video memory). On a standard VGA, it's possible to have a width of 800 pixels, iirc, but it may not be entirely portable.
Actually, thats a question, if someone cares to answer, is there a faster way to scroll in such a video mode?
I take it you are copying the entire lower 720 lines 80 bytes up, which, depending on the bpp, may take quite some time (if you have 800x600x16 it can be done fairly quickly with the right read/write modes, i.e. 32 pixels at a time, but with 256 colour let alone true colour modes, it all becomes rather slow).

That said, if all you are doing is display text, using a graphics mode is rather inefficient. Try one of the higher VESA text modes instead (there's a 132x60 at least, mode 0x10c).

JAL
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Odd video modes

Post by Combuster »

(there's a 132x60 at least, mode 0x10c).
And the video mode numbers are no longer standardized but free to choose...
"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 ]
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 »

does ralphs inturrupt list tell us all of the availible screen modes? because when i took a look at it i only found two are there more that i need to see?
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 »

I reformatted the RBIL list of video modes, and took out the non-standard ones. They're attached as a .txt.
Attachments
int 10h ah=00h.txt
VGA and previous video modes
(1.97 KiB) Downloaded 127 times
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