Post Reply 
Four types of RPN
09-08-2014, 12:37 AM (This post was last modified: 09-08-2014 12:53 AM by hansklav.)
Post: #14
RE: Four types of RPN
(09-03-2014 04:45 PM)Marcus von Cube Wrote:  
(09-02-2014 10:52 PM)hansklav Wrote:  (…) "top copy on pop".

I don't like this wording because it doesn't describe exactly what happens:

In the RPL machines and the Prime, the stack is of variable size. If a value is popped off the stack (consumed or dropped) the length of the stack decreases. Thus, the stack may well contain too little objects to perform a given operation. The prime differs just in the maximum size of this stack from the RPL machines.

In the other machines the stack has a fixed size. The question is what happens if a value is dropped or consumed: The remaining elements drop one level, except the top of the stack which is left unchanged. The duplication of the value is just a side effect of the drop, not an extra operation.

The term is not mine. ‘Top copy on pop’ for the replication of the contents of the T register on stack drop is used already in 1978 by John A. Ball in his book ‘Algorithms for RPN calculators’. The term is short, sounds nice, and describes exactly what the user needs to know. How this is done programmatically is another matter and of no direct concern to the average user (imho).

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


Messages In This Thread
Four types of RPN - hansklav - 09-02-2014, 04:16 PM
RE: Four types of RPN - Joe Horn - 09-02-2014, 05:44 PM
RE: Four types of RPN - Jeff_Kearns - 09-02-2014, 06:06 PM
RE: Four types of RPN - walter b - 09-02-2014, 09:38 PM
RE: Four types of RPN - Joe Horn - 09-02-2014, 10:17 PM
RE: Four types of RPN - Mark Hardman - 09-02-2014, 10:22 PM
RE: Four types of RPN - d b - 09-02-2014, 10:40 PM
RE: Four types of RPN - Paul Dale - 09-03-2014, 04:57 AM
RE: Four types of RPN - hansklav - 09-08-2014, 12:51 AM
RE: Four types of RPN - hansklav - 09-02-2014, 10:52 PM
RE: Four types of RPN - walter b - 09-03-2014, 06:37 AM
RE: Four types of RPN - hansklav - 09-08-2014, 12:25 AM
RE: Four types of RPN - walter b - 09-08-2014, 04:40 AM
RE: Four types of RPN - Marcus von Cube - 09-03-2014, 04:45 PM
RE: Four types of RPN - hansklav - 09-08-2014 12:37 AM
RE: Four types of RPN - Thomas Klemm - 09-03-2014, 08:36 PM
RE: Four types of RPN - htom trites - 09-08-2014, 05:33 AM
RE: Four types of RPN - walter b - 09-08-2014, 06:00 AM
RE: Four types of RPN - htom trites - 09-08-2014, 09:43 PM
RE: Four types of RPN - htom trites - 09-10-2014, 02:04 AM
RE: Four types of RPN - Thomas Klemm - 09-10-2014, 06:46 AM
RE: Four types of RPN - Thomas Klemm - 09-11-2014, 01:30 PM



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