Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!nprdc!malloy From: malloy@nprdc.arpa (Sean Malloy) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Other binaries versions of ME wanted Message-ID: <1261@skinner.nprdc.arpa> Date: 4 Jan 89 14:40:25 GMT References: <260@laas.laas.fr> <102760002@hpcvlx.HP.COM> <4067@drivax.UUCP> <12862@steinmetz.ge.com> Reply-To: malloy@nprdc.arpa (Sean Malloy) Distribution: na Organization: Navy Personnel R&D Center, San Diego Lines: 25 In article <12862@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: |In article <4067@drivax.UUCP> frotz@drivax.UUCP (Frotz) writes: || Is source available that determines when an EGA card is in 43 line mode? I || would like a code fragment if anyone knows how to do this. | | There is a variable you can set that puts the display in the mode you |want. There is no particular need to "tell what mode it's in" when you |can just set it. Now if I could only get it to work just right with 132 |column mode... Unfortunately, if you are doing mode switching (such as switching to a graphics mode and back again when the program finishes), generally you will want to put the display back the way it was when you started. Therefore, a need to "tell what mode it's in" _does_ exist. Equally unfortunately, IBM designed all of the EGA's registers as Write Only. There is no way for a program to determine what mode the display is in; the best that can be done is to set the display to a mode that the program keeps track of. Sean Malloy Navy Personnel Research & Development Center San Diego, CA 92152-6800 malloy@nprdc.arpa