home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / hackers / 1329 < prev    next >
Encoding:
Text File  |  1992-08-30  |  2.3 KB  |  60 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!van-bc!rsoft!agate!ames!haven.umd.edu!news.umbc.edu!umbc4.umbc.edu!paulr
  3. From: paulr@umbc4.umbc.edu (Paul Riddle)
  4. Subject: Re: YAFP: TRS-80 Super Graphics
  5. Message-ID: <1992Aug29.213737.19225@umbc3.umbc.edu>
  6. Sender: newspost@umbc3.umbc.edu (News posting account)
  7. Organization: Univ. of MD, Baltimore County
  8. References: <YAMAUCHI.92Aug29141341@fox.ces.cwru.edu>
  9. Date: Sat, 29 Aug 1992 21:37:37 GMT
  10. Approved: yep
  11. Lines: 47
  12.  
  13. In article <YAMAUCHI.92Aug29141341@fox.ces.cwru.edu> yamauchi@ces.cwru.edu (Brian Yamauchi) writes:
  14. >ObHack: Anyone else remember TRS-80 "Super Graphics"?
  15. >
  16. >The TRS-80 was capable of displaying character graphics (with
  17. >butter-knife sharp resolution (128x72?) in two stunning colors (black
  18. >and white) :-), but the catch was that it was impossible to actually
  19. >enter graphics characters from the keyboard.  There were three
  20. >conventional alternatives -- POKE bytes to screen memory (cumbersome),
  21. >use CHR$ (slow), SET/RESET individual pixels (extremely slow).
  22. >
  23. >Softside magazine published a hack to get around this.  First, define
  24. >an empty string such as:
  25. >
  26. >10 A$ = "     "
  27.  
  28. ...
  29.  
  30. This reminds me of a similar hack on the Color Computer (Coco) that
  31. people used to use to "hide" lines of BASIC code...  Not quite as
  32. elegant, but the same idea.  What you would do is follow your line of
  33. code with a comment, and then a number of X's equal to the length of
  34. the line.  To illustrate:
  35.  
  36. 10 PRINT "FOING BLASTERS":REM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  37.  
  38. Then after that, you would go PEEKing through the area allocated to
  39. your BASIC code (this value tended to change on the Coco, since you
  40. could reserve low RAM for extra pages of hi-res graphics...  I think
  41. the starting address was stored in low RAM somewhere) looking for the
  42. sequence of X's.  Once you found them, you'd POKE the corresponding
  43. locations with the value 8, which is an ASCII backspace.
  44.  
  45. Then when you listed your program, the line would flash for a brief
  46. instant after which it would be backspaced over...  presto, "hidden"
  47. lines of code.
  48.  
  49. I think a few software companies actually used this as a method of
  50. copy-protection.
  51.  
  52. Aah, sweet memories of home-computer hacking.
  53.  
  54. Paul
  55. -- 
  56. If found, please return to:         |
  57. Paul Riddle                         | paulr@umbc3.umbc.edu
  58. UMBC, Academic Computing Services   |
  59. Baltimore, MD 21228                 | (410) 455-3627
  60.