home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23789 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.6 KB  |  64 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!yale.edu!yale!gumby!destroyer!cs.ubc.ca!alberta!kakwa.ucs.ualberta.ca!ee.ualberta.ca!jpenne
  3. From: jpenne@ee.ualberta.ca (Jerry Penner)
  4. Subject: Re: Double low/hi Res
  5. Message-ID: <jpenne.721544715@ee.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: eigen.ee.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. References: <1992Nov9.235907.3531@mnemosyne.cs.du.edu>
  10. Date: Thu, 12 Nov 1992 05:05:15 GMT
  11. Lines: 51
  12.  
  13. sledbett@nyx.cs.du.edu (Shawn Ledbetter) writes:
  14.  
  15. >I've read somewhere about the Apple ][e/][c/][gs that it can handle
  16. >double lo-res/hi-res.  Does anyone know the poke values or any other
  17. >information I need.  Thanks in advance.
  18.  
  19.     double lo-res:
  20.         $C05E (49246)    ; double-res
  21.         $C056 (49238)    ; lo-res
  22.         $C052 (49234)    ; full-screen
  23.         $C050 (49232)    ; graphics on
  24.  
  25.     double hi-res:
  26.         $C05E (49246)    ; double-res
  27.         $C057 (49239)    ; hi-res
  28.         $C052 (49234)    ; full-screen
  29.         $C050 (49232)    ; graphics on
  30.  
  31. Now, depending on whether you have the 80-column firmware enabled or
  32. not, you may need to hit some more soft switches.
  33.  
  34. If you are going to do all the work yourself (ideally in assembly
  35. language for speed), and you are starting with the machine in
  36. 40-column mode with the 80-column firmware disabled, then do this:
  37.  
  38.     sta $c001  ;    poke 49153,0 ;    ; turns on 80STORE switch
  39.     sta $c00d  ;    poke 49165,0 ; turns on 80 column video mode 
  40.  
  41. If the 80-column firmware is already on and you're in 80-column mode,
  42. you don't need to do this since the firmware already did it.  Keep in
  43. mind that if you do this yourself you will confuse the firmware if you
  44. try to print or input characters through it.
  45.  
  46. To access the graphics (either double-lo or double-hi), the pixels are
  47. accessed starting in the AUX memory bank (bank 1 on IIgs) and then in
  48. the MAIN bank (bank 0 on IIgs).  They alternate for every double-lores
  49. pixel and every seven double-hires pixels.  To access the AUX memory,
  50. you hit $C055 (49237) (PAGE2) and then read or write the location.  To
  51. access the MAIN memory, hit $C054 (49236) (PAGE1) and read/write.
  52.  
  53. If you can get a IIe Technical Reference Manual, a IIc Tech Ref, or a
  54. IIgs Hardware ref, it will clearly show how video display memory is
  55. laid out, and will clarify all the details here.  The best way to
  56. learn is to experiment on your own.  Disassembling the video firmware
  57. always helps as well.  Disassembling the lo-res graphics routines
  58. (start at $F800 in the monitor ROM) and the Applesoft hi-res routines
  59. ($F3xx to $F7xx) will also tell you a lot.
  60.  
  61. Have fun.
  62. -- 
  63. Jerry Penner   jpenne@ee.ualberta.ca   Try a 1-line .sig today.
  64.