Post Reply 
HP-41: Reusing local labels in same program.
10-23-2023, 08:51 PM
Post: #2
RE: HP-41: Reusing local labels in same program.
The search will start where the program pointer is pointing and go forward.  If the searched-for label is not found by the time the search reaches the end of the program, the search will continue at the beginning of the same program.  When a match if found, the offset is stored at the GTO so that after that, it will try that location first, and unless you've edited the program, it will be found quickly.  If it does not find it there, (because you've edited the program), the search process starts over.  I could be slightly off in a detail or two, but this is the effect.  Obviously if you do a GTO INDirect, it will have to search every time, since the contents of the register you're specifying as a label selector will keep changing.

http://WilsonMinesCo.com  (Lots of HP-41 links at the bottom of the links page, at http://wilsonminesco.com/links.html#hp41 )
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: Reusing local labels in same program. - Garth Wilson - 10-23-2023 08:51 PM



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