HHC 2015 RPN programming Contest is now open
|
09-29-2015, 03:48 PM
(This post was last modified: 09-29-2015 07:42 PM by David Hayden.)
Post: #45
|
|||
|
|||
RE: HHC 2015 RPN programming Contest is now open
[EDIT: Fixed the byte count - Thanks Werner]
Okay, here is a version that seems to work. It uses the stack and flags 01-06. The code assumes that the flags are cleared at the start (my interpretation of the "assume default settings" rule) and it clears them at the end (as required for multiple runs). There is no call to SORT. In my experience, the only time you really need to sort data is for human consumption. 23 steps and 45 bytes, assuming that I can get away with a RTN at the end instead of an END. Code: 01 LBL RR |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)