Post Reply 
need help with FCAT program for HP 42S
05-23-2024, 12:17 AM
Post: #6
RE: need help with FCAT program for HP 42S
(05-22-2024 07:17 AM)Thomas Klemm Wrote:  If you wonder why LBL 14 is used and not LBL 99 to indicate a NO-OP: it is highest one-byte label.
From LBL 15 on they consume two bytes.

And then they give the precious byte away with a useless use of a RTN statement:
Code:
89 RTN
90 END

Although END returns from a subroutine the same way as RTN, RTN is a tad faster, which is especially noticeable when the subroutine is called many times in a loop. So RTN END is not a useless waste of one byte, but rather slightly improves execution time.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: need help with FCAT program for HP 42S - Joe Horn - 05-23-2024 12:17 AM



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