Post Reply 
4-level stack manipulation on 12c
03-07-2015, 12:16 PM
Post: #47
RE: 4-level stack manipulation on 12c
(03-07-2015 09:10 AM)Marcus von Cube Wrote:  
(03-05-2015 11:39 PM)Gerson W. Barbosa Wrote:  Here are the stack diagrams at the end of the fourth step:
Code:

...
HP-12C:

T    0    0    5    0    0
Z    0    0    0    0    0
Y   17   17    0    0   17
X    5    5   17   17    5 

         RND  Rv  ENTER LSTx
Are you sure about the 4th column (after ENTER)? Y should read 17.

In classic RPN, ENTER acts as DUP but disables stack lift. LastX honors this flag and overwrites X instead of pushing the stack up.

On the Platinum it looks like ENTER does not correctly disable stack lift for all subsequent commands, probably only for manual digit entry, not for other operations that return values to the stack like LastX and RCL.

You're right! I've edited my original message.

Thanks for the clear explanation!

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 4-level stack manipulation on 12c - Gerson W. Barbosa - 03-07-2015 12:16 PM



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