home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!malgudi.oar.net!ucbeh.san.uc.edu!uceng.uc.edu!rabagley
- Newsgroups: comp.sys.hp48
- Subject: Re: Fast User RPN mkstr (IR Remote)
- Message-ID: <1992Jul27.144748.21004@uceng.UC.EDU>
- From: rabagley@uceng.UC.EDU (Ross A Bagley)
- Date: Mon, 27 Jul 1992 14:47:48 GMT
- References: <1992Jul24.194053.19308@uceng.UC.EDU> <1992Jul24.195915.20272@uceng <2a71a8f2.1479.2comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Organization: College of Engineering, University of Cincinnati
- Lines: 57
-
- From: akcs.nomad@hpcvbbs.cv.hp.com (Adam Cowen)
- Newsgroups: comp.sys.hp48
-
- >I have a smaller, and I think could be quicker way of doing the same
- >thing.
- >
- ><< -> V
- > << V R->B #4d
- > BLANK ->STR 13 V SUB
- > >>
- >>>
- >
-
- Definitely smaller. Quicker too. (at least on the useful strings)
- To get the exact size you wanted the program should be:
-
- >> -> V
- << V R->B #4d
- BLANK ->STR 13 V 13 + SUB
- >>
- >>
-
- I did have one gripe. It can't produce anything but a string of zeros.
- With a little modification, mine could produce a string of anything (which
- might be important to some programmer some day) and which is (hopefully)
- what the TOOL library's meta-string function does.
-
- >This will give you approximately the size you need, but for even more
- >compactness try:
- >
- ><< R->B #4d BLANK
- > ->STR >>
-
- I had no clue you could use anything but a string of spaces. Wow. Again,
- in order to get the exact size you asked for (assuming you don't care what
- the actual string is) the program needs to be:
-
- << 13 - R->B #4d BLANK
- ->STR >>
-
- >Now I am not sure if I made this myself, or it was someone elses idea, or
- >program since I have been using it for so long (I have a toshiba stereo,
- >so the other program is no good to me.)
-
- WHAT!?!? Why is Toshiba any different? What am I doing right? (I have a
- Toshiba TV and VCR that work fine with this thing) What other program?
-
- Anyway, I like my algorithm better (sour grapes visible in the distance :-)
- I was just happy to finally contribute something.
- -- ______________________________________
- _______ | |
- /\______\ | rabagley@uceng.uc.edu |
- / / ___ /_____ ______ ______ | |
- / / /_\/ /______\\_____\\_____\ | Sex appeal is 50% what you've got |
- / / _ __// ___ // ___// ___/ | and 50% what people think you've |
- / / / \ \ / /_\/ //___ //___ / | got. -Murphy |
- \/_/ \_\\_____//_____//_____/ |____________________________________|
-