[comp.os.msdos.programmer] Video Modes..

shearer@cis.udel.edu (Rob Shearer) (01/28/91)

First of all.. I would be interested in a copy of the .GL compiler/decompiler
that someone was talking about ...  is it FTPable?? or can you post it?


Anyway, Got another question fer you guys...

I have been playing around with different video modes for several different  VGA
cards (TEXT modes... not graphic...)   One is an ATI VGA Wonder card, another
is an unknown in a Decstation 333c, and another is another unknown in a
Compaq Portable 286 SLT...  

Norton Commander can put each of these into a 80x50 mode that i would like to
take advantage for... (the 2 386 machines can also do a 132x43 mode but I can't
figure out if the Compaq is capable of that yet...) 

The question is...  how can i get MY program to put the VGA card into 80x50
mode...??  I have looked at several different memory locations...  I can
have my program FIND the fact that it is 80x50 (I can even calculate the 50
lines based on scan lines...)..  BUT INT 10 function 0x0f informs me I am in
mode 0x03..  (80x25..)  no matter what I do (unless I go to 132x43 mode).

So, evidentatly all NCC is doing is changin the number of scan lines per
char..  is that correct?

I would  like an example.... either pseudo code, "C" code, Pascal code,
Assembly code, basic, ada...  ANYTHING!... I am desperate!

Thanks in Advance
Robb Shearer
shearer@sol.cis.udel.edu

ong@d.cs.okstate.edu (ONG ENG TENG) (01/29/91)

From article <42952@nigel.ee.udel.edu>, by shearer@cis.udel.edu (Rob Shearer):
> The question is...  how can i get MY program to put the VGA card into 80x50
> mode...??  I have looked at several different memory locations...  I can
> have my program FIND the fact that it is 80x50 (I can even calculate the 50
> lines based on scan lines...)..  BUT INT 10 function 0x0f informs me I am in
> mode 0x03..  (80x25..)  no matter what I do (unless I go to 132x43 mode).
> 
> So, evidentatly all NCC is doing is changin the number of scan lines per
> char..  is that correct?
> 
> I would  like an example.... either pseudo code, "C" code, Pascal code,
> Assembly code, basic, ada...  ANYTHING!... I am desperate!

You have to execute the following machine assembler sequence to
get into 80x50 mode (or 80x43 on EGA cards): 
 
          mov  ax,1112h       ; go into 80x50 mode
          sub  bl,bl
          int  10h  
>
> Thanks in Advance
> Robb Shearer
> shearer@sol.cis.udel.edu

You are welcome.

E. Teng Ong (ong@d.cs.okstate.edu)