Solved

80x43 textmode

Posted on 1997-10-12
3
939 Views
Last Modified: 2008-03-10
How do you set text modes like 80x43, 80x45 and 80x60?

I've read Ralph Brown's interrupt list but there are no such modes listed there that work on all video cards.

IDEs like Borlandc's BC and DJGPP's RHIDE use these modes, so there's got to be a way. In RHIDE the 80x43 mode has number 0x503 (I think). With int 10h ah=0 you can only set
modes 0-0ffh. How does RHIDE set that mode? (It must be mode numbers. Mode 80x25 has 0x3 just as usual.)

If there are no ordinary modes, can I tweak the vga regs to get these resolutions?

TIA
0
Comment
Question by:Levin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
qed070297 earned 50 total points
ID: 1255870
You were looking at the right thing, but the wrong place.
Text modes like 80x43 and 80x50 are not new dispay modes, but
rather modifcations of mode 3.  What you have to do is set the
number of scan lines that the text characters take up.  

Look up int 10h, sub function AH=11h.  From there AL=14h for 25
line mode, AL=12h for 43 line mode, and AL=10h for 50 line mode.
You will need to use int386() or _asm {} to be able to set
these modes.  Keep in mind that text function libraries that do
strange things like cursor position, text page swapping etc.,
may not function as expected as a result of setting the line
height directly like this.
0
 

Author Comment

by:Levin
ID: 1255871
I was looking for textmode(C4350).

But OK, here are your points.
0
 
LVL 1

Expert Comment

by:aecooper
ID: 1255872
I just loaded a different sized font into the EGA card and that did the trick. I have written a host of text display handling stuff which you are welcome to have (but I haven't had time to write any documentation yet).

Go to http://freespace.virgin.net/anthony.cooper/ and then to the software downloads page and look under MS-DOS.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question