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

  1. Path: sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!wiml
  2. From: wiml@cs.washington.edu (William Lewis)
  3. Newsgroups: alt.hackers
  4. Subject: Re: YAFP: TRS-80 Super Graphics
  5. Message-ID: <1992Aug30.032540.1104@beaver.cs.washington.edu>
  6. Date: 30 Aug 92 03:25:40 GMT
  7. References: <YAMAUCHI.92Aug29141341@fox.ces.cwru.edu>
  8. Sender: news@beaver.cs.washington.edu (USENET News System)
  9. Organization: Computer Science & Engineering, U. of Washington, Seattle
  10. Lines: 43
  11. Approved: By the Universal Temporal Irrelevancy Corps U.T.I.C
  12.  
  13. In article <YAMAUCHI.92Aug29141341@fox.ces.cwru.edu> yamauchi@ces.cwru.edu (Brian Yamauchi) writes:
  14. >Now, you can delete your VARPTR/POKE commands, and whenever you want
  15. >to display your alien invader, simply PRINT A$ at the appropriate
  16. >point in the screen.
  17.  
  18.  The same trick was the standard way to run assembly language
  19. programs on the ZX81/Timex-Sinclair 1000 (and others of their ilk).
  20. Youd first write a program like this:
  21.  
  22. 10 REM XXXXXXXXXXX....
  23. 20 FOR I=16514 TO 16823
  24. 30 INPUT A
  25. 40 POKE I,A
  26. 50 NEXT I
  27.  
  28. (My sinclair basic is very rusty, so please excuse any weirdities.)
  29. You'd run it and enter the values for your ML program, which would
  30. get stored in the REM statement. Then you'd delete the input routine and 
  31. replace it with the BASIC part of the real program.
  32.  
  33. I ended up doing this often enough that for short programs I'd just
  34. type in the REM statement directly. This wasn't always possible
  35. unfortunately because of the Sinclair's bizarre character set (non-ASCII,
  36. of course!). The lower 128 characters were pretty normal --- numbers,
  37. letters (uppercase only), etc. But towards the upper end of the
  38. set were entire tokens --- "LET ", " TO ", etc. were all single characters.
  39. (The display memory was variable-sized to account for this, and also
  40. to save memory by not storing the righthand white space. In 1 or 2 K of
  41. RAM it's a useful technique...) But because of the mode-ful nature
  42. of the keyboard (probably why I use vi), "LET " would only be bound to
  43. any keys if you'd just entered a line number! At other times,
  44. the same key would be, I think, "L" (maybe "K"). The shift key would
  45. allow you to use other tokens like " TO " and "THEN". A graphics-mode
  46. key would let you enter the various "graphics" characters...  When
  47. my membrane keyboard wore out and I cobbled on a "real" keyboard
  48. (from RS, probably), I'd memorized almost all of these bindings 
  49. and hardly ever had to refer to the original keyboard... just as well,
  50. since the new keyboard didn't have quite the same wiring and the
  51. bottom row of letters was shifted over. Ahhh, memories. =8)
  52.  
  53. I probably have a soft spot in my head for the Timex because  it's
  54. the first computer (such as it was) that I really got any hands-on
  55. use of ... 
  56.