Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!uunet!mcsun!isgate!krafla!frisk From: frisk@rhi.hi.is (Fridrik Skulason) Newsgroups: comp.sys.ibm.pc Subject: Re: detection of 43/50/... line modes Message-ID: <1602@krafla.rhi.hi.is> Date: 29 Mar 90 12:14:27 GMT References: <58consult@physc1.byu.edu> <5534@jarthur.Claremont.EDU> Reply-To: frisk@rhi.hi.is (Fridrik Skulason) Organization: University of Iceland (RHI) Lines: 15 In article <5534@jarthur.Claremont.EDU> jmerrill@jarthur.Claremont.EDU (Confusion Reigns) writes: >In article <58consult@physc1.byu.edu> consult@physc1.byu.edu writes: >> Is there a standard way to detect the number of lines an EGA or VGA display >>adapter is currently using? >Yes. Check memory location 0040:0084; it contains the number of screen >lines minus 1 (a 25-line display is 18 hex, a 50-line display is 31 hex). Just make sure first that the program is really running on a machine with EGA or VGA. On a computer with CGA or Hercules 40:84 is undefined. -- Fridrik Skulason University of Iceland | Technical Editor of the Virus Bulletin (UK) | Reserved for future expansion E-Mail: frisk@rhi.hi.is Fax: 354-1-28801 |