Post Reply 
A new RPL firmware for the 50g
01-02-2014, 10:17 PM
Post: #18
RE: A new RPL firmware for the 50g
Han and Claudio, send me your email address in a private message and I'll send you what I have. Look it over and we can decide where to go from there.

There are definitely some neat things that we can add to RPL. One that I put in already is a SysRPL SHUFFLE command inspired by the WP34S. It shuffles up to 8 stack levels, taking the input from up to 15 levels. For example,
Code:
# 333 SHUFFLE
replaces levels 1-3 with the value that was in level 3.
Code:
# 213 SHUFFLE
is equivalent to ROT.
Code:
# abcdef SHUFFLE
replaces levels 1-6 with the contents of levels 15-10.

An even more general command is REARRANGE. This takes two arguments. The first is a number that tells how many items to add (positive argument) or remove (negative argument) from the stack. The second argument is like SHUFFLE's argument, telling it which values from the old stack to copy to the new stack.

I suspect that most of the ten zillion existing stack manipulation commands could be replaced with calls to SHUFFLE or REARRANGE and rather than spending 20 minutes figuring that SWAPUNROT 4PICKDUPDUP is the sequence that you need to get the stack arranged the way you want it, you can just tell SHUFFLE or REARRANGE what you want.

Dave
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: A new RPL firmware for the 50g - Han - 01-01-2014, 06:39 AM
RE: A new RPL firmware for the 50g - Han - 01-01-2014, 07:27 PM
RE: A new RPL firmware for the 50g - Han - 01-02-2014, 03:44 AM
RE: A new RPL firmware for the 50g - David Hayden - 01-02-2014 10:17 PM
RE: A new RPL firmware for the 50g - Han - 01-03-2014, 03:14 PM



User(s) browsing this thread: 1 Guest(s)