home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / hackers / 1344 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.8 KB  |  41 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!convex!news.utdallas.edu!shane
  3. From: shane@utdallas.edu (Shane Davis)
  4. Subject: Re: YAFP: TRS-80 Super Graphics
  5. Message-ID: <1992Sep1.183035.20969@utdallas.edu>
  6. Sender: usenet@utdallas.edu
  7. Nntp-Posting-Host: corvette.utdallas.edu
  8. Reply-To: shane@utdallas.edu
  9. Organization: The Univ. of Texas at Dallas, ACC
  10. References: <YAMAUCHI.92Aug29141341@fox.ces.cwru.edu> <1992Aug29.213737.19225@umbc3.umbc.edu>
  11. Date: Tue, 1 Sep 1992 18:30:35 GMT
  12. Approved: me
  13. Lines: 26
  14.  
  15. In article <1992Aug29.213737.19225@umbc3.umbc.edu>, paulr@umbc4.umbc.edu (Paul Riddle) writes:
  16. |> 
  17. |> This reminds me of a similar hack on the Color Computer (Coco) that
  18. |> people used to use to "hide" lines of BASIC code...  Not quite as
  19. |> elegant, but the same idea.  What you would do is follow your line of
  20. |> code with a comment, and then a number of X's equal to the length of
  21. |> the line.  To illustrate:
  22. |> 
  23. |> 10 PRINT "FOING BLASTERS":REM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  24. |> 
  25. |> Then after that, you would go PEEKing through the area allocated to
  26. |> your BASIC code (this value tended to change on the Coco, since you
  27. |> could reserve low RAM for extra pages of hi-res graphics...  I think
  28. |> the starting address was stored in low RAM somewhere) looking for the
  29. |> sequence of X's.  Once you found them, you'd POKE the corresponding
  30. |> locations with the value 8, which is an ASCII backspace.
  31. |> 
  32.  
  33. On the Apple, I'm pretty sure you could POKE a begin- or end-of-BASIC-program
  34. address somewhere in zero page which would result in abridged output from
  35. LIST. You could also make "unmodifyable" code, even if LIST displayed it, by
  36. replacing line numbers with numbers >63999. Applesoft called a line number
  37. higher than 63999 a syntax error, so by POKEing 65535 or whatever into the
  38. line number, it became immune to standard BASIC editing.
  39.  
  40. --Shane
  41.