Section 11: Multiple Programs 151
File name: hp 12c pt_user's guide_English_HDPMF123E27 Page: 151 of 275
Printed Date: 2005/8/1 Dimension: 14.8 cm x 21 cm
Keystrokes
(ALG mode)
Display
-
025, 30
2
026, 2
5
027, 5
b
028, 25
+
029, 40
5
030, 5
}
031, 36
Keys in program.
t
032, 31
Halts program execution.
gi
025
033,43, 33, 025
Branches to beginning of program.
fs
12,000.00
Sets calculator back to Run mode.
(Display shown assumes results
remain from running program in
previous example.)
Example 2:
With the two programs now stored in program memory from the
preceding examples (occupying 27 program lines in RPN mode and 33 lines in
ALG mode), store the amortization program from Section 9(page 125). Since there
are already two programs stored in program memory, we’ll skip step 3 in the
procedure above. Furthermore, since the amortization program ends with a loop,
we’ll skip steps 5 and 6. When the amortization program was stored at the
beginning of program memory, the
i
instruction at the end of the program
branched to the
:
0 instruction in line 002. In the RPN program, since the
:
0
instruction is now in line 029, we’ll specify that line number with the
i
instruction in line 034. In the ALG program, since the
:
0 instruction is now in
line 035, we’ll specify that line number with the
i
instruction in line 041.
Keystrokes
(RPN mode)
Display
fs
Sets calculator to Program
mode.
gi.
027
027,43, 33, 019
Sets calculator to last line
keyed into program memory.