Post Reply 
stack lift and change sign
08-31-2014, 07:25 AM
Post: #48
RE: stack lift and change sign
(08-29-2014 12:55 PM)walter b Wrote:  Hmmmh, what would be the benefit over classic RPN?

Quite a bit. It is more consistent to not have stack lift.

Type in a value and press ENTER. The value goes into X, the stack lifts one position. This is the same behaviour as e.g. PI. You don't use two stack levels for entering one number, you don't risk things like 3 ENTER 4 ENTER + (which was asked about recently from memory).

Clx drops the stack one level, rather than putting zero into X and disabling lift. It needs a rename but there is no odd behaviour anymore.

Sigma+ and Sigma- play stack games too. Consistent is for them to consume two levels and to rely on an UNDO command to fix a mistake.

% is another one. Yes, leaving the value in Y is handy if followed by + or - but confusing and inconsistent.


Basically, you are getting rid of quite an oddity (stack lift) and doing everything in a consistent and sensible manner. The oddity was due to early device not having enough memory. I'm sure HP wouldn't have had stack lift if the HP 35 had had a couple of extra registers in the CPU.


How many times have we had questions for new members that came down to stack lift issues? I can remember several, I also remember getting confused after coming back to RPN from RPL by this exact issue.


- Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
stack lift and change sign - Thomas Klemm - 08-10-2014, 09:48 AM
RE: stack lift and change sign - walter b - 08-10-2014, 11:44 AM
RE: stack lift and change sign - d b - 08-11-2014, 06:08 AM
RE: stack lift and change sign - Paul Dale - 08-11-2014, 06:21 AM
RE: stack lift and change sign - walter b - 08-27-2014, 11:30 AM
RE: stack lift and change sign - d b - 08-27-2014, 02:32 PM
RE: stack lift and change sign - walter b - 08-27-2014, 03:57 PM
RE: stack lift and change sign - Andreas - 08-27-2014, 07:40 PM
RE: stack lift and change sign - d b - 08-29-2014, 04:45 AM
RE: stack lift and change sign - walter b - 08-29-2014, 09:15 AM
RE: stack lift and change sign - walter b - 08-29-2014, 09:47 AM
RE: stack lift and change sign - walter b - 08-29-2014, 04:11 PM
RE: stack lift and change sign - walter b - 08-29-2014, 07:54 PM
RE: stack lift and change sign - walter b - 08-31-2014, 06:23 AM
RE: stack lift and change sign - walter b - 08-29-2014, 08:21 PM
RE: stack lift and change sign - Les Bell - 08-11-2014, 01:41 AM
RE: stack lift and change sign - Paul Dale - 08-11-2014, 06:44 AM
RE: stack lift and change sign - walter b - 08-28-2014, 08:33 PM
RE: stack lift and change sign - Paul Dale - 08-28-2014, 10:05 PM
RE: stack lift and change sign - walter b - 08-29-2014, 12:55 PM
RE: stack lift and change sign - walter b - 08-29-2014, 01:25 PM
RE: stack lift and change sign - walter b - 08-29-2014, 02:04 PM
RE: stack lift and change sign - walter b - 08-29-2014, 02:25 PM
RE: stack lift and change sign - walter b - 08-29-2014, 03:05 PM
RE: stack lift and change sign - Paul Dale - 08-31-2014 07:25 AM
RE: stack lift and change sign - RMollov - 08-31-2014, 09:40 AM
RE: stack lift and change sign - walter b - 08-31-2014, 11:26 AM
RE: stack lift and change sign - walter b - 08-31-2014, 08:50 PM
RE: stack lift and change sign - Paul Dale - 08-31-2014, 09:52 PM
RE: stack lift and change sign - walter b - 09-01-2014, 10:36 AM
RE: stack lift and change sign - Paul Dale - 09-01-2014, 11:38 AM
RE: stack lift and change sign - walter b - 09-01-2014, 06:56 PM
RE: stack lift and change sign - walter b - 08-29-2014, 09:21 PM



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