Post Reply 
My 1st HP-41 program. Suggestions?
10-21-2023, 12:51 AM
Post: #13
RE: My 1st HP-41 program. Suggestions?
Thanks. I thought of a rather contrived example to demonstrate how this works. The code has two global label entry points LBL 'E1' and LBL 'E2', each with an LBL 01 two lines later. XEQ 'E1' and XEQ 'E2' and see where it exits.

Code:

//Double lable trouble
LBL "E1"        ; First entry point
10              ; Entry marker
GTO 02          ; 
LBL 01          ; 1st LBL 01
11              ; Exit marker
RTN
LBL "E2"        ; Second entry point
20              ; Entry marker
GTO 02
LBL 01          ; 2nd LBL 01
22              ; Exit marker
RTN
LBL 02
GTO 01          ; Which LBL 01 will it goto?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: My 1st HP-41 program. Suggestions? - Jeff_Birt - 10-21-2023 12:51 AM



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