Post Reply 
HP-41 Byte Table
12-28-2018, 04:43 PM
Post: #9
RE: HP-41 Byte Table
Small details ...
  • there are 15 (2 bytes) GTO's (00 to 14) and matching labels (00 to 14) not 16
  • if LBL is out of reach (>112 bytes), the second byte will stay at 0x00 and label scan will be done each time
  • LBL search is always going forward until the end of the program, then go to start of the program and forward search again
  • you can have multiple LBL XX (00 to 14) and GTO XX (00 to 14) in your program (see example below)
Multiple labels example
Code:
program        uncompiled               compiled                 notes
01 LBL "ABC"   C0 00 F4 00 41 42 43     C0 00 F4 00 41 42 43     
02 LBL 00      01                       01                       
03 X<>Y        71                       71                       
04 GTO 00      B1 00                    B1 10                    goto line 06, forward 1 byte (0 register & 1 byte)
05 1/X         60                       60                       
06 LBL 00      01                       01                       
07 SIN         59                       59                       
08 GTO 00      B1 00                    B1 A1                    goto line 02, backward 9 bytes (1 register & 2 bytes)
09 END         C4 02 09                 C4 02 09
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-41 Byte Table - JurgenRo - 12-27-2018, 07:54 PM
RE: HP-41 Byte Table - Thomas Okken - 12-27-2018, 08:31 PM
RE: HP-41 Byte Table - JurgenRo - 12-27-2018, 09:05 PM
RE: HP-41 Byte Table - JurgenRo - 12-27-2018, 09:11 PM
RE: HP-41 Byte Table - Sylvain Cote - 12-28-2018 04:43 PM
RE: HP-41 Byte Table - JurgenRo - 12-28-2018, 08:34 PM
RE: HP-41 Byte Table - Sylvain Cote - 12-27-2018, 09:02 PM
RE: HP-41 Byte Table - JurgenRo - 12-27-2018, 10:46 PM
RE: HP-41 Byte Table - Thomas Okken - 12-27-2018, 09:18 PM
RE: HP-41 Byte Table - JurgenRo - 12-27-2018, 09:22 PM
RE: HP-41 Byte Table - hth - 12-28-2018, 05:14 PM
RE: HP-41 Byte Table - JurgenRo - 12-28-2018, 08:44 PM
RE: HP-41 Byte Table - Sylvain Cote - 12-28-2018, 09:17 PM
RE: HP-41 Byte Table - Thomas Okken - 12-28-2018, 11:44 PM
RE: HP-41 Byte Table - JurgenRo - 12-28-2018, 11:57 PM



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