Post Reply 
HP 41 - branching to local label and return stack - FINAL RESULTS AND PROGRAMS
05-22-2019, 12:28 AM
Post: #24
RE: HP 41 - branching to local label and return stack
(05-21-2019 01:45 PM)Sylvain Cote Wrote:  
Code:

RTN                             // could be removed, END is a super RTN
END

Correction: not "could" be removed, but "should" be removed.

END is not just a marker that indicates where a program ends. It is an executable instruction, and when it is executed, it performs EXACTLY the same operation as RTN.

There is never, ever, any reason to put a RTN right before an END. Never ever. And when you do, a kitten dies somewhere.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 41 - branching to local label and return stack - Thomas Okken - 05-22-2019 12:28 AM



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