home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter45 / l45-4.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-18  |  563 b   |  18 lines

  1. /* Function to tell the BIOS to set up properly sized characters for 25 rows of
  2.  16 pixel high text in 640x400 graphics mode. Call immediately after mode set. 
  3.  Based on a contribution by Bill Lindley. */
  4.  
  5. #include <dos.h>
  6.  
  7. void Set640x400()
  8. {
  9.    union REGS regs;
  10.  
  11.    regs.h.ah = 0x11; /* character generator function */
  12.    regs.h.al = 0x24; /* use ROM 8x16 character set for graphics */
  13.    regs.h.bl = 2;    /* 25 rows */
  14.    int86(0x10, ®s, ®s); /* invoke the BIOS video interrupt
  15.                                  to set up the text */
  16. }
  17.  
  18.