Section 10:
Section 10:
Section 10:
Section 10: Program Editing
Program Editing
Program Editing
Program Editing 115
115
115
115
File name: HP 12c+_user's guide_English_E_HDP0F12AE03_062608 - Modified.doc
Page: 115 of 213
Printed Date: 2021/6/16
Dimension: 14.8 cm x 21 cm
Adding Instructions Within a Program
Adding Instructions Within a Program
Adding Instructions Within a Program
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 instructions,
beginning at the proper program line, followed by the original instructions from
that program line through the end of the program. This method is described below
under Adding Instructions by Replacement. When instructions must be added in the
middle of a long program, however, using this method will require you to key in
numerous instructions — namely, the original instructions from the point at which
the new instructions are added through the end of program memory. Since keying
in these instructions may require a significant amount of time, in such situations you
may prefer to use the method described below under Adding Instructions by
Branching.
That method basically involves branching to the new instructions which are stored
at the end of program memory, then branching back to the program line
immediately following the line from which you branched out. Adding instructions
by branching is not so simple as adding instructions by replacement; however, it
generally will require fewer keystrokes whenever there are more than four program
lines between (and including) the first line to be executed after the new instruction(s)
and the last line you keyed into program memory. Furthermore, if program
memory includes branches to program lines following the point at which the new
instruction(s) are being added, adding instructions by branching will
not
require
that you change the line numbers specified in the
(
instructions, which
may
be
necessary when you add instructions by replacement.
Adding Instructions by Replacement
Adding Instructions by Replacement
Adding Instructions by Replacement
Adding Instructions by Replacement
1. Press
fs
to set the calculator to Program mode.
2. Press
g(.
followed by two digits that specify the last program line to
be executed before the added instruction(s). This sets the calculator to the
proper program line for adding the new instruction(s) in the next step.
3. Key in the new instruction or instructions.
4. Key in the original instruction or instructions, beginning with the first
instruction to be executed
after
the added instruction(s), and continuing
through the last instruction you keyed into program memory.
Note:
Note:
Note:
Note:
If program memory includes branches to program lines following that
at which the first new instruction is being added, remember to change the
line number(s) specified in the
(
instruction(s) — as described above
under Changing the Instruction in a Program Line — to the actual
new
line
number(s).
Содержание 0012C-90001
Страница 1: ...hp 12c financial calculator user s guide H Edition 5 HP Part Number 0012C 90001 ...
Страница 14: ......
Страница 15: ...Part I Part I Part I Part I Problem Solving Problem Solving Problem Solving Problem Solving ...
Страница 86: ......
Страница 87: ...Part II Part II Part II Part II Programming Programming Programming Programming ...
Страница 123: ...Part III Part III Part III Part III Solutions Solutions Solutions Solutions ...
Страница 169: ...Appendi Appendi Appendi Appendixes xes xes xes ...