Download Print this page

HP 35s Instruction Manual page 3

Converting programs to line number addressing
Hide thumbs Also See for HP 35s:

Advertisement

hp calculators
HP 35s Converting programs to line number addressing
A001
A002
B001
B002
B003
B004
B005
B006
B007
B008
B009
B010
Now, write the program down again, but this time leave out all LBL instructions – but put the LBL letter next
to the instruction that follows the now deleted label. Also leave in the GTO (or XEQ) instructions with the
labels originally referenced. This may make it easier to replace them with the proper line number addresses.
With
B
Now begin numbering the lines starting with A001. When you get to a line with a letter next to it, find the
GTO or XEQ instruction with that same letter. Change that GTO or XEQ instruction to point to the line
number of the instruction that had the letter next to it. Line A003 is the first one encountered.
With
A001
A002
B
hp calculators
Label Version
LBL A
STO A
LBL B
PSE
1
x=y?
RTN
x<>y
2
RMDR
x=0?
GTO D
Line Numbers
LBL A
STO A
PSE
1
x=y?
RTN
X<>Y
2
RMDR
x=0?
GTO D
Line Numbers
LBL A
STO A
PSE
1
x=y?
RTN
X<>Y
2
RMDR
x=0?
GTO D
B011
RCL A
B012
3
B013
x
B014
1
B015
+
C001
LBL C
C002
STO A
C003
GTO B
D001
LBL D
D002
RCL A
D003
2
D004
INT÷
D005
GTO C
RCL A
3
X
1
+
C
STO A
GTO B
D
RCL A
2
INT÷
GTO C
RCL A
3
X
1
+
C
STO A
GTO A003
**Changed**
D
RCL A
2
INT÷
GTO C
- 3 -
HP 35s Converting programs to line number addressing - Version 1.0

Advertisement

loading