Post Reply 
[WP-34s] Swap question
05-16-2014, 02:12 PM (This post was last modified: 05-16-2014 02:14 PM by Tugdual.)
Post: #3
RE: [WP-34s] Swap question
(05-16-2014 02:06 PM)Didier Lachieze Wrote:  
(05-16-2014 01:36 PM)Tugdual Wrote:  Finally is it possible to have indirect swap?
Something like:
Code:
R10=8, R11=9 R8=3, R9=4
SWAP ->R10, ->R11
would end up with R8=4 and R9=3

You can do that with 3 instructions:
Code:
h x<> -> 10
h x<> -> 11
h x<> -> 10

At the end the content of registers R8 and R9 has been swapped and the stack is unchanged.
Very smart!
Thanks Didier!

Is that the same as:
Code:
RCL ->10
x<> ->11
STO ->10
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[WP-34s] Swap question - Tugdual - 05-16-2014, 01:36 PM
RE: [WP-34s] Swap question - Tugdual - 05-16-2014 02:12 PM
RE: [WP-34s] Swap question - Tugdual - 05-16-2014, 02:40 PM



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