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