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

  1. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!malgudi.oar.net!ucbeh.san.uc.edu!uceng.uc.edu!rabagley
  2. Newsgroups: comp.sys.hp48
  3. Subject: Re: Fast User RPN mkstr (IR Remote)
  4. Message-ID: <1992Jul27.144748.21004@uceng.UC.EDU>
  5. From: rabagley@uceng.UC.EDU (Ross A Bagley)
  6. Date: Mon, 27 Jul 1992 14:47:48 GMT
  7. References: <1992Jul24.194053.19308@uceng.UC.EDU> <1992Jul24.195915.20272@uceng <2a71a8f2.1479.2comp.sys.hp48.1@hpcvbbs.cv.hp.com>
  8. Organization: College of Engineering, University of Cincinnati
  9. Lines: 57
  10.  
  11. From: akcs.nomad@hpcvbbs.cv.hp.com (Adam Cowen)
  12. Newsgroups: comp.sys.hp48
  13.  
  14. >I have a smaller, and I think could be quicker way of doing the same
  15. >thing.
  16. >
  17. ><< -> V
  18. >   <<  V R->B #4d
  19. >       BLANK ->STR 13 V SUB
  20. >   >>   
  21. >>>
  22. >
  23.  
  24. Definitely smaller.  Quicker too. (at least on the useful strings)
  25. To get the exact size you wanted the program should be:
  26.  
  27. >> -> V
  28.    << V R->B #4d
  29.       BLANK ->STR 13 V 13 + SUB
  30.    >>
  31. >>
  32.  
  33. I did have one gripe.  It can't produce anything but a string of zeros.
  34. With a little modification, mine could produce a string of anything (which
  35. might be important to some programmer some day) and which is (hopefully)
  36. what the TOOL library's meta-string function does.
  37.  
  38. >This will give you approximately the size you need, but for even more
  39. >compactness try:
  40. >
  41. ><< R->B #4d BLANK
  42. >  ->STR >>
  43.  
  44. I had no clue you could use anything but a string of spaces.  Wow.  Again,
  45. in order to get the exact size you asked for (assuming you don't care what
  46. the actual string is) the program needs to be:
  47.  
  48. << 13 - R->B #4d BLANK
  49.    ->STR >>
  50.  
  51. >Now I am not sure if I made this myself, or it was someone elses idea, or
  52. >program since I have been using it for so long (I have a toshiba stereo,
  53. >so the other program is no good to me.)
  54.  
  55. WHAT!?!? Why is Toshiba any different?  What am I doing right?  (I have a
  56. Toshiba TV and VCR that work fine with this thing)  What other program?
  57.  
  58. Anyway, I like my algorithm better (sour grapes visible in the distance :-)
  59. I was just happy to finally contribute something.
  60. --                                  ______________________________________
  61.       _______                       |                                    |
  62.      /\______\                      |       rabagley@uceng.uc.edu        |
  63.     / / ___  /_____ ______ ______   |                                    |
  64.    / / /_\/ /______\\_____\\_____\  |  Sex appeal is 50% what you've got |
  65.   / / _  __// ___  //  ___//  ___/  |  and 50% what people think you've  |
  66.  / / / \ \ / /_\/ //___  //___  /   |  got.              -Murphy         |
  67.  \/_/   \_\\_____//_____//_____/    |____________________________________|
  68.