Home > HP > Calculator > HP 12c Owners Manual

HP 12c Owners Manual

Here you can view all the pages of manual HP 12c Owners Manual. The HP manuals for Calculator are available online for free. You can easily download all the documents as PDF.

Page 111

  Section 9: Branching and Looping  111 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 111 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Keystrokes Display   
 
15,000.00  
Ê 
07-  45  1Line 07: :
1. 
 
20.00 20% tax rate has been recalled to 
X-register, moving income to 
Y-register. 
Ê 
08-    25Line 08: b
. 
 
3,000.00 20% of 15,000 = 3,000. 
20000 
20,000. Keys income equal to test value into 
display and X-register.   
Ê 
01-  45  0Line 01: :
0. 
 
20,000.00 Test...

Page 112

112  Section 9: Branching and Looping 
 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 112 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Keystrokes Display   
Ê 
02-    34Line 02: ~
. 
 
25,000.00 Income has been placed in 
X-register and test value has been 
placed in Y-register. 
Ê 
03-  43  34Line 03: go
. 
 
25,000.00  
Ê 
05-  45  2Condition tested by o
 was false, 
so program execution skipped the 
next line and continued at line 05: 
:
2. 
 
25.00 25% tax rate...

Page 113

 
113 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 113 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
  Section 10 
Program Editing 
There are various reasons why you might want to modify a program you have 
stored in Program memory: to correct a program that turns out to have errors; to 
insert new instructions such as ?
 to store intermediate results or u
 to display 
intermediate results; or to replace a u
 instruction by an t
 instruction. 
Rather than clearing...

Page 114

114  Section 10: Program Editing 
 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 114 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Keystrokes Display   
fs 
6,250.00 Sets calculator back to Run mode. 
(Display shown assumes results remain 
from last example in precedin
g section.) 
:2?6 
25.00 Copies tax rate from R2 into R6. 
Adding Instructions at the End of a Program 
To add one or more instructions at the end of the last program stored in program 
memory: 
1....

Page 115

  Section 10: Program Editing  115 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 115 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Adding Instructions Within a Program 
If an instruction is to be added within a program, simply keying it in will replace 
the instruction previously stored in that program line, as described above; the 
contents of all higher-numbered program lines remain unchanged. 
To add instructions within a program, you could simply key in the new...

Page 116

116  Section 10: Program Editing 
 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 116 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Example:
 Assuming you have added a - 
instruction at the end of program 
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...

Page 117

  Section 10: Program Editing  117 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 117 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
5. Press gi00. This automatically converts a data storage register into 
seven additional lines of program memory (if there was not already a 
i00 instruction remaining at the end of program memory), and it ensures 
that program execution will branch to line 00 after the program is run. 
6.  Key in the instruction(s) being added. 
7.  Key...

Page 118

118  Section 10: Program Editing 
 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 118 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
Keystrokes Display   
:3 
12-  45  3 
~ 13-    34 
go 14-  43  34 
gi00 15- 43, 33   00 
Added instructions. 
:0 
16-  45  0 Keys in instruction immediately 
following point at which new 
instructions are being added. (This 
instruction was replaced in line 01 
by i
12 instruction.) 
gi02 
17- 43, 33   02 Branches back to second line (line...

Page 119

  Section 10: Program Editing  119 
 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 119 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
 
  

Page 120

 
120 
File name: hp 12c_users guide_English_HDPMBF12E44  Page: 120 of 209   
Printered Date: 2005/7/29    Dimension: 14.8 cm x 21 cm 
  Section 11 
Multiple Programs 
You can store multiple programs in program memory, provided that you separate 
them by instructions that will halt program execution after each program is run and 
return to the beginning of the program if it is run again. You can run programs 
after the first one stored in program memory by setting the calculator to the first 
line of the...
Start reading HP 12c Owners Manual

Related Manuals for HP 12c Owners Manual

All HP manuals