HP 12c financial calculator Manuale Utente

Pagina di 211
 
120 
File name: hp 12c_user's 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 program using i before pressing t. 
Storing Another Program 
To store a program after another program is already stored in program memory: 
1. Press fs to set the calculator to Program mode. Do not clear program 
memory. 
2. Press gi. followed by two digits that specify the number of the last 
line you keyed into program memory. 
Note:
 If this is the second program to be stored in program memory, you 
will need to ensure that a i00 instruction separates it from the first 
program by doing step 3. If there are already two or more programs stored 
in program memory, skip step 3 and proceed with step 4. 
3. 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 first program is run. 
4.  Key the program into program memory. If you are storing a program that 
you originally had written to be stored at the beginning of program memory 
and the program contains a i instruction, be sure to change the line 
number specified in the instruction so that the program will branch to the 
actual new line number. 
Note:
 The next two steps are included so that program execution will halt 
after this program is run and will return to the beginning of the program if it 
is run again. If the program ends with a loop, you should skip steps 5 and 6 
since the instructions in those steps would serve no purpose and never be 
executed. 
5. Press t. This halts program execution at the end of the program. 
6. Press gi followed by two digit keys that specify the first line number of 
your new program. This transfers program execution to the beginning of the 
new program when the program is run again.