Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hp-pcd!hpcvlx!craig From: craig@hpcvlx.HP.COM (Craig Durland) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Other binaries versions of ME wanted Message-ID: <102760003@hpcvlx.HP.COM> Date: 23 Dec 88 14:59:38 GMT References: <260@laas.laas.fr> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 17 > 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. If the machine has a PC compatible BIOS then: 40:4A has number of columns (usually 80). You can detect EGA or VGA with: mov AX,1200H mov BX,10H mov CX,-1 int 10H cmp CX,-1 jE notEGA ; if CX didn't change it ain't EGA If it is EGA or VGA then 40:84 has number of rows-1. Otherwise assume 24 (a 25 line screen). Craig Durland