Post Reply 
42S/Free42 programming: jumping back to the last MENU after RTN
04-30-2019, 08:57 PM
Post: #3
RE: 42S/Free42 programming: jumping back to the last MENU after RTN
Yeah, there are potentially some obscure edge cases where it would cause problems, so a flag to toggle that behavior would probably end up being needed. But it would likely fix more things than it would break if it's limited to only happening when hitting an RTN with an empty return stack while a program has a MENU (or VARMENU?) currently displayed.

Essentially, store a return address any time MENU is called, and make RTN go back there and stop if the return stack is empty and flag 75 is set, so that R/S would begin executing at the step after the MENU instruction. (Programs written to require R/S after working with a menu would need an extra press to get past the STOP following MENU.)
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 42S/Free42 programming: jumping back to the last MENU after RTN - Dave Britten - 04-30-2019 08:57 PM



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