Determining the Current Adapter

You can determine the current adapter by calling the video display adapter function, vid_adapter():

int vid_adapter();

This function returns the current video display adapter under PCDOS. The return values can be interpreted as follows:

MDA Monochrome Display Adapter
CGA Color Graphics Adapter
EGA Enhanced Grapics Adapter
PGS Professional Graphics System
VGA Video Graphics Array
MCGA Monochrome Color Graphics Array

Note: Earlier versions of BIOS do not fully support this service. In this case, VGA and MCGA will be reported as EGA.


Home Contents Previous Next