Post Reply 
Accessing / Manipulating RPN Stack from PPL
02-20-2014, 05:05 PM
Post: #2
RE: Accessing / Manipulating RPN Stack from PPL
(02-20-2014 04:56 PM)John R. Graham Wrote:  One of the most natural programming activities on prior programmable HP calculators is to write a program that, when invoked, takes arguments from the stack and does something with them. Presumably stack access from PPL is with some set of (currently undocumented) functions. Does anyone know how to do this?

- John

It works the same way as with regular commands. In RPN mode, the "argument" of a command is the number of arguments, and the true arguments sit on the stack. For example, if you create a program of the form MYPROG(a,b,c) which takes three inputs from the stack as parameters a, b, c, then in RPN you would have a, b, and c on the stack, and call MYPROG(3).

Your program is created the same was as in non-RPN mode.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Accessing / Manipulating RPN Stack from PPL - Han - 02-20-2014 05:05 PM



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