• C

80x43 textmode

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
LevinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

qed070297Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LevinAuthor Commented:
I was looking for textmode(C4350).

But OK, here are your points.
0
aecooperCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.