Adding Instructions By Branching - HP 0012C-90001 User Manual

12c financial calculator
Table of Contents

Advertisement

116 Section 10:
116
Section 10: Program Editing
Program Editing
116
116
Section 10:
Section 10:
Program Editing
Program Editing
Example: Assuming you have added a - instruction at the end of program
Example:
Example:
Example:
memory as in the preceding example, suppose you now wanted to insert an t
instruction before the - instruction so that the program will display the amount of
the tax before displaying the net income after tax. Since there is only one
instruction (-) following the point at which the new instruction is being added, it
is simplest to add the t instruction by replacement, as follows:
Keystrokes
Keystrokes
Keystrokes
Keystrokes
fs
g(.08
t
-
fs
15000t
t

Adding Instructions by Branching

Adding Instructions by Branching
Adding Instructions by Branching
Adding Instructions by Branching
1. Press fs to set the calculator to Program mode.
2. Press g(. followed by two digits that specify the program line
immediately preceding the point at which the new instruction(s) are being
added — usually, the last program line to be executed before the added
instruction(s). This sets the calculator to the proper program line for inserting
a ( instruction in the next step. This ( instruction will replace whatever
instruction was already stored there, but that instruction will be keyed back
into program memory, to be executed just after the new instructions, in step
7.
3. Press g( followed by two digits that specify the
line you keyed into program memory. (Branching to the
first
than to the
in program memory must contain a (00 instruction. The (00
instruction ensures that program execution will branch to line 00 and halt
after the program is run.) For example, if the last line you keyed into
program memory was line 10, you would press g(12 at this step,
preserving the g(00 in line 11.
4. Press g(. followed by two digits that specify the last line you keyed
into program memory.
Display
Display
Display
Display
00-
08-
25
09-
31
10-
30
12,000.00
3,000.00
12,000.00
is necessary because the first line following the last program
Sets calculator to Program mode.
Sets calculator to last program line
to be executed, which contains the
b instruction.
Keys in new instruction.
Keys in original instruction, which
was replaced by new instruction
added.
Sets calculator back to Run mode.
Twenty percent tax on $15,000
income.
Net income after tax.
second
line after the last
second
line rather

Advertisement

Table of Contents
loading

Table of Contents