home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / hackers / 1350 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!sgiblab!bolis!news
  2. From: amillar (Alan Millar)
  3. Newsgroups: alt.hackers
  4. Subject: YAFP: TRS-80 Super Graphics
  5. Message-ID: <80LgqB3w165w@bolis.SF-Bay.org>
  6. Date: 2 Sep 92 05:54:54 GMT
  7. Organization: The Bolis Group, San Jose, CA
  8. Lines: 24
  9. Approved: Well...ok...@bolis.SF-Bay.org
  10.  
  11. yamauchi@ces.cwru.edu (Brian Yamauchi) writes:
  12.  
  13. > for the _source_code_, so...  Insert code to use the VARPTR (variable
  14. > pointer) function to find the memory location of A$.  Then POKE the
  15. > bytes corresponding to your graphics into the location.  After running
  16. > the program once, line 10 will look like:
  17. > 10 A$ = "<graphic-representation-of-an-alien-invader>"
  18.  
  19. Yeah, this was standard practice on the Apple ][ also.
  20.  
  21. ObOldHack: Using letters "O" and "Z" as constants for 1 and 0 in 
  22. Apple ][ Integer Basic.  Integer Basic stored tokens with the high
  23. bit off and variable names with the high bit on, so "O" and "Z" only
  24. took one byte.  It stored integer constants as a one-byte token followed
  25. by the two data bytes (16 bit int), so a 1 or 0 actually took three
  26. bytes.  It made the most of my 16K, and also saved time loading from casette...
  27.  
  28. - Alan
  29.  
  30. ----             email:                                  ,,,,  
  31. Alan Millar       amillar@bolis.SF-Bay.org            __oo  \  
  32.     (Remember: only YOU can prevent bang paths)         =___/  
  33. But Moses said "Oh, Lord, please send someone else to do it." -Exo. 4:13
  34.