Post Reply 
[WP-34s] Swap question
05-16-2014, 02:06 PM (This post was last modified: 05-16-2014 02:07 PM by Didier Lachieze.)
Post: #2
RE: [WP-34s] Swap question
(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.
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 - Didier Lachieze - 05-16-2014 02:06 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)