Post Reply 
User-defined functions in Free42
01-10-2021, 11:29 PM
Post: #4
RE: User-defined functions in Free42
It would be nice if restoring stack also has its own function, say RESTORE
RTN (or END) had the side-effect of quitting the program ...

Code:
FUNC1   ; a     b c d
FMA     ; a+b*c d d d
RESTORE ; a+b*c b c d
...     ; more code
END

Without an explicit restore stack function, we would need to do this.

Code:
XEQ 00
...     ; more code
RTN
LBL 00
FUNC1   ; a     b c d
FMA     ; a+b*c d d d
END     ; a+b*c b c d
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-10-2021 11:29 PM



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