Section 3: Automatic Memory Stack and ALPHA Register45
Keystrokes Display    
R    3.0000    
The stack now looks like this:
  T  2.0000  
 
  Z  1.0000  
  Y  4.0000  
  X  3.0000  
Continue pressing R  until the stack returns to the original position.
Keystrokes Display    
R  
   4.0000
   
 
T  3.0000
 
 
 
Z  2.0000
 
 
Y  1.0000
 
 
X  4.0000
 
R  
   1.0000
   
 
T  4.0000
 
 
 
Z  3.0000
 
 
Y  2.0000
 
 
X  1.0000
 
Four presses of the R  function will roll the stack down four times, returning the stack contents to their original registers.
The R  (roll up) function works the same way as R  except that R  rolls the stack contents up instead of down.
Exchanging x and y
The X Y (x exchange y) function exchanges the contents of the X- and Y-registers without changing the contents of the Z- and T-register. If you press X Y with data intact from the previous example, the numbers in the X- and Y-registers will be changed...
  ...from this...   ...to this.  
 
T  4.0000
   
T  4.0000
 
 
Z  3.0000
   
Z  3.0000
 
 
Y  2.0000
 
Y  1.0000
 
 
X  1.0000
X  2.0000