[comp.sys.ibm.pc] EGA 43 col

au05+@andrew.cmu.edu (Apinetr Unakul) (03/26/90)

I have an EGA monitor and would like to know how to make the
display mode 43x80.

kdq@demott.COM (Kevin D. Quitt) (03/28/90)

In article <4a3NY2O00WB645vFs7@andrew.cmu.edu> au05+@andrew.cmu.edu (Apinetr Unakul) writes:
>I have an EGA monitor and would like to know how to make the
>display mode 43x80.


Try this:


#include    <bios.h>                    /* For definition of union REGS     */


/*  Set 25 line mode. Rock solid stuff
*/
void    set_25_lines ()
   {
    union REGS  regs;

    regs.x.ax   = 0x0003;               /* 80 by 25 color                   */
    int86( 0x10, &regs, &regs );

    screen_rows     = 25;
    graphics_set    = FALSE;
    clear_screen();
   }


/*  Set 43 line mode. This is a little bit magic.
*/
void    set_43_lines ()
   {
    union REGS  regs;

    set_25_lines();                     /* Stewardship                      */

    regs.x.ax   = 0x0300;               /* Ask about the cursor             */
    regs.h.bh   = 0;
    int86( 0x10, &regs, &regs );

    regs.x.ax   = 0x1112;               /* Load ROM 8x8 double-dot font     */
    regs.h.bl   = 0;                    /* Page zero                        */
    int86( 0x10, &regs, &regs );

    screen_rows = 43;
    clear_screen();
   }



    Have fun!

kdq
-- 

Kevin D. Quitt                          Manager, Software Development
DeMott Electronics Co.                  VOICE (818) 988-4975
14707 Keswick St.                       FAX   (818) 997-1190
Van Nuys, CA  91405-1266                MODEM (818) 997-4496 Telebit PEP last
34 12 N  118 27 W                       srhqla!demott!kdq   kdq@demott.com

 "Next time, Jack, write a God-damned memo!" - Jack Ryan - Hunt for Red October

HVO@psuvm.psu.edu (03/29/90)

Using MS- or PC-DOS v.3.x or v.4.x, enter
C:\DOS\MODE.COM CON LINES=43 COLUMNS=80

LINES can be 25, 43, or 50; COLUMNS can be 40 or 80.
The command can be entered from the DOS prompt or in a batch.

kdq@demott.COM (Kevin D. Quitt) (03/30/90)

In article <90087.174700HVO@psuvm.psu.edu> HVO@psuvm.psu.edu writes:
>Using MS- or PC-DOS v.3.x or v.4.x, enter
>C:\DOS\MODE.COM CON LINES=43 COLUMNS=80

    This doesn't work on the MS-DOS 3.30 I have from Phoenix.  I get

Invalid paramter  'conl'


kdq

-- 

Kevin D. Quitt                          Manager, Software Development
DeMott Electronics Co.                  VOICE (818) 988-4975
14707 Keswick St.                       FAX   (818) 997-1190
Van Nuys, CA  91405-1266                MODEM (818) 997-4496 Telebit PEP last
34 12 N  118 27 W                       srhqla!demott!kdq   kdq@demott.com

 "Next time, Jack, write a God-damned memo!" - Jack Ryan - Hunt for Red October