Post Reply 
Free42 LNSTK debug
03-01-2021, 07:12 AM
Post: #1
Free42 LNSTK debug
When debugging a program with LNSTK, executing RTN from the keyboard does not return to 4STK mode.
Cheers, Werner
Find all posts by this user
Quote this message in a reply
03-01-2021, 11:57 AM (This post was last modified: 03-01-2021 11:58 AM by Thomas Okken.)
Post: #2
RE: Free42 LNSTK debug
Yes. Executing RTN from the keyboard deletes all local variables and restores the IJ pointers if the indexed matrix was hidden by a local variable, but it does not undo the effects of FUNC, L4STK, or LNSTK. I think doing so would get messy, and produce surprising results when the user doesn't expect it...
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2021, 01:03 PM (This post was last modified: 03-01-2021 02:23 PM by Werner.)
Post: #3
RE: Free42 LNSTK debug
I would argue that the ones using those functions know what they are doing ;-)
After all, your local variables will disappear as well, why not your local dynamic stack?
I agree that FUNC should NOT be taken into account when executing a manual RTN, though.
Werner
Find all posts by this user
Quote this message in a reply
03-01-2021, 02:14 PM
Post: #4
RE: Free42 LNSTK debug
I could make it restore the stack mode, but without restoring the stack contents... I considered that possibility while implementing LNSTK and L4STK, but I don't remember why I didn't go ahead and do it. It seems like a pretty reasonable thing to do.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2021, 04:58 PM
Post: #5
RE: Free42 LNSTK debug
I made the change. It will be in the next release of Free42 and the next test build of Plus42.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2021, 06:14 PM
Post: #6
RE: Free42 LNSTK debug
Thanks, Thomas!
Werner
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: