Solved

80x43 textmode

Posted on 1997-10-12
3
899 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
3 Comments
 
LVL 1

Accepted Solution

by:
qed070297 earned 50 total points
Comment Utility
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
Comment Utility
I was looking for textmode(C4350).

But OK, here are your points.
0
 
LVL 1

Expert Comment

by:aecooper
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now