home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC013.C
< prev
next >
Wrap
Text File
|
1988-05-15
|
787b
|
19 lines
/************************************************************************/
/* Use C library function to select text mode */
/************************************************************************/
set_mode_x()
{
#define MONO 5
#define VMONO 7
union REGS regs;
regs.h.ah = 0; /* Function = MODE SELECT */
if (get_display_type() == MONO /* Get display type */
||get_display_type() == VMONO)
regs.h.al = 7; /* With mono display use mode 7 */
else
regs.h.al = 3; /* With color display use mode 3*/
int86(0x10,®s, ®s); /* Call INT 10H */
}