home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
setmode.cc
< prev
next >
Wrap
Text File
|
1987-09-27
|
214b
|
10 lines
#include <dos.h>
set_mode(int mode)
/* This will set the video mode to the mode passed */
{
union REGS inregs;
inregs.h.ah=0x00;
inregs.h.al=mode;
int86(0x10,&inregs,&inregs);
}