home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 328_02 / wscreen.h < prev    next >
Text File  |  1991-04-02  |  1KB  |  41 lines

  1. /* WSCREEN.H
  2.  *    This header is only used in those routines that directly access
  3.  *        the screen, or alter parameters that control screen access.
  4.  *    Any routines that do not #inlcude this header don't access the screen
  5.  *
  6.  */
  7.  
  8. #define  __WSCREEN__
  9.  
  10.  
  11.  
  12.     #define HERC_TEXT_RAM      (unsigned char far *)(0xB000L << 16)
  13.     #define EGA_TEXT_RAM      (unsigned char far *)(0xB800L << 16)
  14.  
  15.     #define    HERC_GRAPH_RAM    ( (unsigned char far *) 0xb0000000L )
  16.     #define EGA_GRAPH_RAM     ( (unsigned char far *) 0xa0000000L )
  17.  
  18.  
  19.  
  20. /* where the mouse driver looks to figure out which video page we're on
  21.  *    only used in HERCULES monitiors in graphics modes...
  22.  *    this is the BIOS video mode indicator ... not used otherwise on HERC
  23.  *    so place 6 here for page 0 and 5 here for page 1
  24.  *
  25.  */
  26. #define HERC_ROM_VIDMODE_AREA  ((unsigned char far *) 0x00400049L )
  27.  
  28.  
  29. /* font tables: 8*128 bytes, each char 8x8 bits, 8 bytes per char */
  30. #define ROM_FONT     ( (unsigned char far *) 0xf000fa6eL )
  31.  
  32. /* write to EGA control register and bit plane enable.
  33.  */
  34. #define EGA_OUT(index, val)  outp(0x3ce, (index)), outp(0x3cf, (val));
  35. #define EGA_BITPLANE(planes) outp(0x3c4, 2),       outp(0x3c5, (planes) );
  36.  
  37. #define EGA_ENABLE         0x0f
  38.  
  39. /* ------------------- END of WSCREEN.H ------------------------ */
  40.  
  41.