Table of Contents

Working with the stack

The stack is composed by a number of levels, each one capable of storing a single object. Since the stack is the place where data is created, manipulated and computed, its importance is paramount and unsurprisingly many commands are devoted to move, duplicate and delete data on the stack.

RPL, RPN and Extended RPN modes

newRPL operates the stack in three different modes which differ by the number of levels and the mechanics of the stack movements:

The current stack mode is controlled by flags -28 and -29.

Stack mode flag -28 flag -29
RPL Clear
RPN Set Clear
Extended RPN Set Set

Stack mechanics