Post Reply 
[WP 34s] emulator ENTER key behaviour
05-27-2015, 11:03 PM (This post was last modified: 05-27-2015 11:05 PM by emece67.)
Post: #7
RE: 34s emulator ENTER key problem?
This is only an educated guess.

To implement an RPL machine you need an stack and also a separate register where to store the digits as you type them prior to pushing ENTER.

To implement an RPN machine you only need an stack, as the digits you type are directly entered into the X register. When you push ENTER such digits are copied to Y and, as the automatic stack lift is disabled, new digits will go into X (overwriting the old ones, but not missing them, as they are also in Y). If instead of pushing ENTER you push any operation, the digits you have just typed (in X) are computed with those on Y.

Thus, in an RPN machine you do not need a separate register to hold the digits you type prior to pushing ENTER, the bottom of the stack serves that purpose.

I suppose that, when memory was scarce, such behaviour was advantageous.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 34s emulator ENTER key problem? - emece67 - 05-27-2015 11:03 PM



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