next up previous contents
Next: Examples Up: Appendix C - Reverse Previous: Unary Operations   Contents

Stack Operations

Stack operations allow rearranging the values on the stack. The allowed stack operations in CCICAP are:

Operator - Definition

XY - interchange the values in x and y:



Step x y z
- Xo Yo Zo
XY Yo Xo Zo



P - push 'down' the stack:



Step x y z
- Xo Yo Zo
P Xo Xo Yo



R - roll the stack 'down':



Step x y z
- Xo Yo Zo
R Zo Xo Yo



R^ - roll the stack 'up':



Step x y z
- Xo Yo Zo
R^ Yo Zo Xo




next up previous contents
Next: Examples Up: Appendix C - Reverse Previous: Unary Operations   Contents
Bob Smither 2008-11-19