144 Section 10: Program Editing

Keystrokes (ALG mode)

Þ

+

:9

}

fs

15000t

t

Display

 

 

 

013,

 

16

Keys new instruction into

 

 

 

program line 013.

014,

 

40

Keys new instruction into

 

 

 

program line 014.

015,

45

9

Keys new instruction into

 

 

 

program line 015.

016,

 

36

Keys new instruction into

 

 

 

program line 016.

12,000.00

 

Sets calculator back to Run mode.

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 fsto 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 iinstruction in the next step. This iinstruction 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

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