Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 981
  • Last Modified:

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
0
Levin
Asked:
Levin
1 Solution
 
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
 
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

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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now