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