home *** CD-ROM | disk | FTP | other *** search
/ The Party 1994: Try This At Home / disk_image.bin / source / less_src / 32048.c next >
C/C++ Source or Header  |  1994-09-08  |  497b  |  22 lines

  1. #include <dos.h>
  2. #include <mem.h>
  3. #include <math.h>
  4. extern void clrscr(void);
  5. void setmode(void)
  6. {
  7.     int i;
  8.     static unsigned int CrtParms[]=
  9.      { 0xd06,0x3e07,0xc009,0xea10,0xac11,0xdf12,0x0014,0xe715,0x616,
  10.          0xe317 };
  11.     _AX=0x13;
  12.     geninterrupt(0x10);//}
  13.     outport(0x3c4,0x604);
  14.     outport(0x3c4,0x100);
  15.     outportb(0x3c2,0xe3/*0xe7*/);
  16.     outport(0x3c4,0x300);
  17.     outportb(0x3d4,0x11);
  18.     outportb(0x3d5,inportb(0x3d5)&0x7f);
  19.     for (i=0;i<10;i++) outport(0x3d4,CrtParms[i]);
  20.     clrscr();
  21. }
  22.