home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_06_08 / v6n8047a.txt < prev    next >
Text File  |  1989-09-28  |  540b  |  24 lines

  1. /* hr_init.c - Enable the Apple II high resolution display mode
  2.  * by writing to the addresses of the appropriate soft switches.
  3.  * The value written is of no consequence.  Returns void.
  4.  *
  5.  * Environment: Apple II, Aztec c65 V1.05B
  6.  * Programmer:    Don Strayer
  7.  * Date:        15-Jun-88
  8.  */
  9.  
  10. #include <hr_apple2.h,d2>
  11.  
  12. hr_init()
  13.  
  14. {    char *swa;                        /* pointer to soft switch address */
  15.  
  16.     swa  = HR_TXTOFF;                /* disable text mode */
  17.     *swa = '\0';
  18.     swa  = HR_ON;                    /* enable hi res graphics */
  19.     *swa = '\0';
  20.  
  21.     return();
  22. }
  23.  
  24.