Post Reply 
User-defined functions in Free42
01-13-2021, 10:48 PM
Post: #23
RE: User-defined functions in Free42
(01-13-2021 05:19 PM)Dave Britten Wrote:  There's just one save routine:

SS - Save stack (saves the entire stack, including L)

Then there are a few different restore routines that restore the stack in various ways, called just before the program returns

What about Dave's idea of placing the specs at the end, RPN style ?

We could even combine LBL + SS as say, LBLS, saving 1 step.
This make the code steps same as before stack saving feature was added.

LBLS "TEST"
...
RTN 12 ; 1 input, 2 output

This seems to give more flexibility to the code too.
Example, for bad input, error out, and restore the whole stack ... RTN 00
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: User-defined functions in Free42 - Albert Chan - 01-13-2021 10:48 PM



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