HP (Hewlett-Packard) 12C ユーザーズマニュアル

ページ / 278
144  Section 10: Program Editing 
 
 
File name: hp 12c pt_user's guide_English_HDPMF123E27  Page: 144 of 275   
Printed Date: 2005/8/1   
Dimension: 14.8 cm x 21 cm 
 
Keystrokes 
(ALG mode)
 
Display
 
 
Þ
 
013,    
16
 
Keys new instruction into 
program line 013.
 
014,    
40
 
Keys new instruction into 
program line 014.
 
:9 
015,  45 9
 
Keys new instruction into 
program line 015.
 
016,    
36
 
Keys new instruction into 
program line 016.
 
fs 
12,000.00
 
Sets calculator back to Run mode.
 
15000t
 
3,000.00
 
Twenty percent tax on $15,000 
income.
 
12,000.00
 
Net income after 20% tax is 
subtracted from $15,000 
income. 
Adding Instructions by Branching 
1. Press fs to set the calculator to Program mode. 
2. Press gi. followed by three 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 i instruction in the next step. This i 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 gi followed by three digits that specify the second line after the 
last line you keyed into program memory. (Branching to the second line 
rather than to the first is necessary because the first line following the last 
program in program memory must contain a i000 instruction. The 
i000 instruction ensures that program execution will branch to line 000 
and halt after the program is run.) For example, if the last line you keyed into 
program memory was line 010, you would press gi012 at this step, 
preserving the gi000 in line 011. 
4. Press gi. followed by three digits that specify the last line you keyed 
into program memory. 
5. Press gi000. This automatically converts a data storage register into 
seven additional lines of program memory (if there was not already a 
gi000 instruction remaining at the end of program memory), and it