User-defined functions in Free42
|
01-12-2021, 08:01 PM
Post: #17
|
|||
|
|||
RE: User-defined functions in Free42
(01-11-2021 04:47 AM)Thomas Okken Wrote: The number of inputs and outputs could be parameterized pretty easily. Since neither can be greater than four, all possibilities could be expressed with a two-digit number, so the syntax could be, say, FUNC 31 for 3 inputs, 1 output. I see no reason not to allow all 25 possibilities. Why do we need to specify number of inputs ? I thought the goal is to return original stack, except for the outputs. Since the stack is tiny, is it better to save them all ? Then, we specify number of outputs to return. Program may have branch that return 2 outputs, another branch just 1. Example, say LBLS = Label, but save all stacks LBLS "TEST" + * รท RTN1 ; only 1 return, restore the rest. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)