Post Reply 
Little explorations with HP calculators (no Prime)
03-16-2018, 08:24 PM (This post was last modified: 03-16-2018 08:30 PM by Thomas Okken.)
Post: #271
RE: Little explorations with HP calculators (no Prime)
(03-16-2018 07:48 PM)pier4r Wrote:  Can one pass functions to a RPN program? For example a label that then is used by the program to recall another program. In other words the main program doesn't know a priori which other program to call, this will be defined by the value of an argument.

You can pass a label number as a number, and a label name as a string. Store in, say, register 00, then call them with XEQ IND 00. The only limitations are: can't call local alpha labels this way (A-J and a-e), nor global labels with names more than 6 characters long.

EDIT: I am assuming you're talking about the HP-41 or 42S here, those obviously being the only RPN calculators you should be using for serious programming. Big Grin Although some (not all) other RPN models also support indirect calls, like the 19C/29C or 67/97.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with HP calculators (no Prime) - Thomas Okken - 03-16-2018 08:24 PM



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