Multiple Programs; Storing Another Program; Section 11: Multiple Programs - HP 12C Platinum User Manual

Financial calculator
Hide thumbs Also See for 12C Platinum:
Table of Contents

Advertisement

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 three 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 i000 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 gi000. This automatically converts a data storage register into
seven additional lines of program memory (if there was not already a
i000 instruction remaining at the end of program memory), and it
ensures that program execution will branch to line 000 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.
Section 1 1
151

Advertisement

Table of Contents
loading

Table of Contents