home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp48 / 5633 < prev    next >
Encoding:
Text File  |  1992-11-09  |  837 b   |  37 lines

  1. Newsgroups: comp.sys.hp48
  2. Path: sparky!uunet!tcsi.com!iat.holonet.net!brianw
  3. From: brianw@iat.holonet.net (Brian Walsh)
  4. Subject: Re: Cliff Stern's Little Challenges
  5. Message-ID: <BxGoto.CIo@iat.holonet.net>
  6. Organization: HoloNet (BBS: 510-704-1058)
  7. References: <721197246detlef.detlef@dmhh.hanse.de>
  8. Date: Mon, 9 Nov 1992 18:32:10 GMT
  9. Lines: 26
  10.  
  11. detlef@dmhh.hanse.de (Detlef Mueller) writes:
  12. : But Brians modified 2nd solution is 6 bytes shorter:
  13. : %%HP: T(3)A(D)F(.);
  14. : \<<
  15. :   "\->" 1 ROT
  16. :   FOR i
  17. :       " " +
  18. :       i "`" NUM SWAP OVER + CHR +
  19. :   NEXT
  20. :   "\<<HALT" + STR\->
  21. : \>>
  22. : 79.5 bytes
  23.  
  24. Nice improvement, but it doesn't work on my 48.  Here's one that does:
  25.  
  26. %%HP: T(3)A(D)F(.);
  27. \<< "\->" 1 ROT
  28.   FOR i " " + i SWAP OVER "`" NUM + CHR +
  29.   NEXT "\<<HALT" + STR\->
  30. \>>
  31. 79.5 bytes
  32.  
  33. -- Brian Walsh
  34.    brianw@holonet.net
  35.  
  36.