[comp.sys.ibm.pc.misc] Detecting display type

NEASE@MAINE.BITNET (08/13/90)

I'm looking for a clean, safe way to determine what kind of display is being
used on a PC or PS/2 type machine.  ie: I want to know if there is either no
display adapter, or monochrome, or cga, ega, vga colour, vga paperwhite, mcga,
pga.  I don't care which brand of card it is... I'm not worrying about whether
the Vga chip set is Tseng or CHIPS, or ...    I'm trying to do this in
assembler.  Any ideas out there?
 
thanks in advance
 
 
     Reid M. Pinchback

frotz@drivax.UUCP (Frotz) (08/14/90)

NEASE@MAINE.BITNET writes:

]I'm looking for a clean, safe way to determine what kind of display is being
]used on a PC or PS/2 type machine.  ie: I want to know if there is either no
]display adapter, or monochrome, or cga, ega, vga colour, vga paperwhite, mcga,
]pga.  I don't care which brand of card it is... I'm not worrying about whether
]the Vga chip set is Tseng or CHIPS, or ...    I'm trying to do this in
]assembler.  Any ideas out there?

Pick up the latest interrupt list on simtel20.  INTER490.ZIP is the
filename you are looking for.  It is what I detailed the current
PCcurses 1.5 beta release hardware detection (all in C) on.  

--
Frotz

leather-bear@cup.portal.com (Jeff A Anderson) (08/16/90)

If you want to discover what the display mode is, check memory location
0040h:0049h.  It is a byte that defines the current display mode.