Section 10: Program Editing  143 
 
File name: HP 12c Pt Converted_user's guide_English_HDP0F123E02_080207  Page: 270 of 281   
Printed Date:  {  2007/8/2Dimension: 14.8 cm x 21 cm 
 
Note: To add one or more instructions at the end of a program that is not 
the  last program stored in program memory, use the procedure described 
below under Adding Instructions within a Program. 
Example:
 With the last program from the preceding section stored in the 
calculator, suppose you wanted to calculate the net income after taxes. In the RPN 
program, you could add a 
-
 instruction at the end in order to calculate the net 
income after taxes. In the ALG program, the tax computed would need to be 
subtracted from the income previously stored in R
9
 (and this will be done by 
changing the sign of the tax to make it negative and then adding it to the income). 
You could do this as follows: 
Keystrokes 
(RPN mode) 
Display  
fs
 
 
Sets calculator to Program mode. 
gi.
008 
008,    25 
Sets calculator to last line keyed 
into program memory. 
-
 
009,    30 
Keys new instruction into 
program line 009. 
fs
 
25.00 
Sets calculator back to Run mode. 
15000
t
 
12,000.00 
Net income after 20% tax is 
subtracted from $15,000 
income. 
 
Keystrokes 
(ALG mode) 
Display 
fs
 
 
Sets calculator to Program mode. 
gi.
011 
011,    36 
Sets calculator to last line keyed 
into program memory. 
Þ
 
012,    16 
Keys new instruction into 
program line 012. 
+
 
013,    40 
Keys new instruction into 
program line 013. 
:
9 
014,  45 9 
Keys new instruction into 
program line 014. 
}
 
015,    36 
Keys new instruction into 
program line 015. 
fs
 
25.00 
Sets calculator back to Run mode.