Post Reply 
EXC/ x<>Rn for stack efficiency
06-14-2017, 09:40 PM
Post: #19
RE: EXC/ x<>Rn for stack efficiency
(06-14-2017 08:46 PM)Dieter Wrote:  
(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

Thanks for that extra effort doing what I should have. Much appreciated and quite helpful.
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 - Matt Agajanian - 06-14-2017 09:40 PM



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