Post Reply 
Stack manipulation wp34s
10-11-2015, 07:13 PM (This post was last modified: 10-11-2015 07:27 PM by Dieter.)
Post: #3
RE: Stack manipulation wp34s
(10-11-2015 04:19 PM)ggauny@live.fr Wrote:  I have omited to join the little exercice, i beg.

I'm not sure if you have noticed the "universal stack shuffle command" the 34s provides: it's called "↔" (actually a left arrow above a right one) and can be found in the P.FCN catalog. So the task in your attached picture...

Code:
T:  4  =>  3
Z:  3  =>  4
Y:  2  =>  1
X:  1  =>  2

...just requires a simple ↔YXTZ. ;-)

Since the 34s has also commands for exchanging Y, Z and T with other registers, another option would be x↔ Y  z↔ T.
Or you may use a more classic approach that will also work on an HP41: x↔ Z  R↓.

Shuffling an eight level stack is a different story, though.

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


Messages In This Thread
Stack manipulation wp34s - ggauny@live.fr - 10-11-2015, 04:13 PM
RE: Stack manipulation wp34s - Dieter - 10-11-2015 07:13 PM
RE: Stack manipulation wp34s - Dieter - 10-11-2015, 07:54 PM



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