home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp48 / 4079 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
  2. Date: Thu, 30 Jul 1992 03:40:02 GMT
  3. Subject: Re: Fast User RPN mkstr (IR Remote)
  4. Message-ID: <2a77617e.1479.4comp.sys.hp48.1@hpcvbbs.cv.hp.com>
  5. Path: sparky!uunet!wupost!sdd.hp.com!hp-cv!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.joehorn
  6. Newsgroups: comp.sys.hp48
  7. References: <1992Jul24.194053.19308@uceng.UC.EDU> <1992Jul27.144748.21004@uceng
  8. Lines: 17
  9.  
  10. Try this for FAST generation of null strings:
  11.  
  12. <<  2  *  # 2EC11h  SYSEVAL  ""  SWAP  # 61C1Ch  SYSEVAL  >>
  13.  
  14. INPUT: Real Number n.
  15. OUTPUT: String of nulls n bytes long in less than one second.
  16.  
  17. Method: System RPL word EXPAND (at #61C1Ch) takes a string on level
  18. two and a system binary on level one, and returns the string expanded
  19. by appending that many nulls (0 CHR).  The program above merely takes
  20. an empty string and expands it to the desired length using EXPAND.  It
  21. is unfortunate that EXPAND is not documented in HP's System RPL Tools.
  22.  
  23. Detlef Mueller's remote-control programs use this method; I learned it
  24. from perusing his code.
  25.  
  26. -Joseph K. Horn-   -Peripheral Vision, Ltd.-
  27.  
  28.