Dec 112017
 
Turbo C source to determine display type (CGA,EGA,VGA,MONO).
File TC-DSPLY.ZIP from The Programmer’s Corner in
Category C Source Code
Turbo C source to determine display type (CGA,EGA,VGA,MONO).
File Name File Size Zip Size Zip Type
DSP-MAKE 384 136 deflated
DSPYINFO.BAT 128 76 deflated
DSPYINFO.C 1339 612 deflated
DSPYINFO.EXE 6420 4178 deflated
DSPYINFO.MK 384 136 deflated
DSPYINFO.OBJ 757 578 deflated
EGA_INFO.C 1193 546 deflated
EGA_INFO.LNK 62 45 deflated
EGA_INFO.OBJ 301 274 deflated
GETSTATE.C 442 260 deflated
GETSTATE.OBJ 309 278 deflated
MEMCHK.C 861 397 deflated
MEMCHK.OBJ 339 278 deflated
READ.ME 1536 680 deflated
SETVMODE.C 480 297 deflated
SETVMODE.OBJ 246 227 deflated
TOOLS.INI 58 58 stored
TO_COLOR.C 481 275 deflated
TO_COLOR.OBJ 285 249 deflated
TO_MONO.C 416 239 deflated
TO_MONO.OBJ 279 243 deflated
USE-MAKE 468 231 deflated
USE_EGA.BAT 102 89 deflated
USE_EGA.C 2021 824 deflated
USE_EGA.EXE 4096 1209 deflated
USE_EGA.MK 468 231 deflated
USE_EGA.OBJ 823 630 deflated

Download File TC-DSPLY.ZIP Here

Contents of the READ.ME file



@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#

DETECTING DISPLAY SYSTEMS

@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#

This collection of programs is from the article "Detecting Display Systems",
by Augie Hansen, in the July 1987 edition of PC Tech Journal, VOL 5 NO 7

I have modified the code to permit compilation with TURBO C, although the
only real changes required were to rename the memory.h header file to mem.h,
and the addition of a few header files to avoid compiler warnings and errors.

This set of routines can detect the presence of any of the current MDA, CGA
or EGA monitor adapters. The article itself is recommended reading, since
it provides a very complete description of the various modes available with
each adapter.

I have left the .mk files as they were shown in the listings, but have also
included the revised makefiles in a form for use by TCC. In addition, you
will find two .bat files that are included to show the compiler command line
used to compile the two .exe files.

These routines can be effectively used by including them in application
programs so that the type of adapter installed can be detected, and proper
code included to deal with the differences.


Charles Frankle
Arlington VA
July 10, 1987

@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@#@


 December 11, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)