Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!cs.utexas.edu!usc!srhqla!demott!kdq From: kdq@demott.COM (Kevin D. Quitt) Newsgroups: comp.sys.ibm.pc Subject: Re: EGA 43 col Message-ID: <96@demott.COM> Date: 27 Mar 90 20:04:19 GMT References: <4a3NY2O00WB645vFs7@andrew.cmu.edu> Reply-To: kdq@demott.COM (Kevin D. Quitt) Organization: DeMott Electronics Co., Van Nuys CA Lines: 60 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 /* 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, ®s, ®s ); 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, ®s, ®s ); regs.x.ax = 0x1112; /* Load ROM 8x8 double-dot font */ regs.h.bl = 0; /* Page zero */ int86( 0x10, ®s, ®s ); 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