Post Reply 
HP 41 - branching to local label and return stack - FINAL RESULTS AND PROGRAMS
05-22-2019, 02:02 AM
Post: #28
RE: HP 41 - branching to local label and return stack
(05-22-2019 12:28 AM)Thomas Okken Wrote:  
(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.
I was just afraid to remove some byte from a program with synthetic instructions...

ARTUR MARIO JUNIOR
BRAZIL
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 - Artur - Brasil - 05-22-2019 02:02 AM



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