Alternative Text Modes?
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Alternative Text Modes?
I saw a screenshot in this topic that was a kernel in text mode running at 720*480. The font was 7 pixels tall for a capital letter.
Does anyone know how to set the screen to that in 32-bit assembly?
Thanks,
Troy
Does anyone know how to set the screen to that in 32-bit assembly?
Thanks,
Troy
Last edited by Troy Martin on Sun Sep 14, 2008 3:02 pm, edited 1 time in total.
Re: 720*480 text mode?
720*480 graphics mode corresponds to 90x60 text mode (assuming 8x8 characters). I believe there is some code on the geezer mirror for setting different VGA text/graphics modes (look in "/osd/graphics/"). It is in C, although it might not be too difficult to translate.
~[Fluidium]~
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: Alternative Text Modes?
Cool. I've renamed the topic to Alternative Text Modes, since I'd like to know any other text modes out there. I'd set them up before pmode to make life easier though
- Combuster
- 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: Alternative Text Modes?
You can do anything that is a multiple of a characters size in dimensions, and whose frequency lies within your monitor's range.
In other words, too much typing work
In other words, too much typing work
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: Alternative Text Modes?
Maybe I'll just stick with 80x25
Re: Alternative Text Modes?
I'm just using like modes.Troy Martin wrote:Maybe I'll just stick with 80x25
1. 80x25 (720x400).
2. 80x30 (720x480). See screenshot:
If you have seen bad English in my words, tell me what's wrong, please.
Re: Alternative Text Modes?
I've experimented with this a bit. My OS can switch to modes like 80x60 or 132x25, but it needs a VESA 1.1 compliant card (most of "VESA compliant" do not support these text modes). Actually I've suceeded to switch to 132x60 but believe me, that's just too stacked.
I would use a graphics mode instead, or 80x25 (80x50 for more information to show)
I would use a graphics mode instead, or 80x25 (80x50 for more information to show)
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Re: Alternative Text Modes?
If you know you are in *a* text mode when you start up, and never switch to a graphics mode, it doesn't matter whether you are in pmode or not: setting up such a mode is just a bunch of outs to various VGA ports (in fact, with a few more outs you can probably switch to any VGA compatible mode, including graphics).Troy Martin wrote:I'd like to know any other text modes out there. I'd set them up before pmode to make life easier though
Standard VGA hardware can have a maximum resolution of 720x480 pixels. With a text mode character box size of 8x8, that's 90x60 characters. Text mode characters can be either 8 pixels or 9 pixels, but in the latter case the ninth column is always empty (i.e. you can always only define 8 pixels), unless it is a character in some high range used for 'box drawing' (in which case the 8th pixel is copied to the 9th). Text mode characters can have any height between 1 and 32 pixels, but less then 8 will produce very flat, unreadable characters.
SVGA hardware can give you text modes with higher resolutions, but this is non-standard and you'll need VESA to probe for and set these.
JAL
- Combuster
- 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: Alternative Text Modes?
Standard VGA hardware can do 800x600 (be it at an annoying 43Hz )Standard VGA hardware can have a maximum resolution of 720x480 pixels.
Re: Alternative Text Modes?
It is right.jal wrote:If you know you are in *a* text mode when you start up, and never switch to a graphics mode, it doesn't matter whether you are in pmode or not: setting up such a mode is just a bunch of outs to various VGA ports (in fact, with a few more outs you can probably switch to any VGA compatible mode, including graphics).
I wrote:I'm programming video directly. It is just necessary to check existng VGA compatible video card and not to use other video drivers, because they may support additional features for vga modes.
This code range is 0xC0-0xDF.jal wrote:unless it is a character in some high range used for 'box drawing' (in which case the 8th pixel is copied to the 9th).
If you have seen bad English in my words, tell me what's wrong, please.
Re: Alternative Text Modes?
43Hz? My god, I think 60Hz is already headache inducing :).Combuster wrote:Standard VGA hardware can do 800x600 (be it at an annoying 43Hz :wink:)Standard VGA hardware can have a maximum resolution of 720x480 pixels.
JAL