Post Reply 
EXC/ x<>Rn for stack efficiency
06-14-2017, 08:46 PM (This post was last modified: 06-14-2017 08:51 PM by Dieter.)
Post: #18
RE: EXC/ x<>Rn for stack efficiency
(06-14-2017 07:38 PM)Matt Agajanian Wrote:  For some reason, a mental block on my part is gettiing in the way of imagining/picturing the stack. Perhaps, I should create an Excel or Word six-row table to help me physically visualise these.

Here we go:

Code:
T         Z         Z         Z         X
Z         Y         Y         Y         Z
Y         X         R1        R1        Y
X         R1        X         X         R1   <= at the end X and R1
                                        
R1        R1        R1        X         X    <= have swapped their contents
                                        
-------------------------------------------
Start     RCL 1     X<>Y      STO 1     R↓
-------------------------------------------

You see that X and R1 are swapped, Y and Z are preserved, only T is lost.

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


Messages In This Thread
RE: EXC/ x<>Rn for stack efficiency - Dieter - 06-14-2017 08:46 PM



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