|
Section 8: Program Editing134
|
|
When you inserted an instruction in the program, all instructions after
the one inserted are moved down. Note that if you begin adding instructions
and the display shows TRY AGAIN ,
you should attempt to insert the instruction again. If the display shows
TRY AGAIN , you will need to
stop and execute the SIZE function presented
in
section 7,
to change the number of data storage registers. Decreasing
the number of data storage registers will automatically increase the size
of program memory. For further explanation, refer to
section 7.
|
|
Going to a Line Number
|
|
It is easy to see that if you wanted to single-step from line 000 to
some remote line number in program memory, it would take a great deal of
time and a number of presses of the SST key.
So using the GTO
· nnn function, you can set the
calculator to any line in the program.
( g
GTO
· nnn cannot be recorded as
a line in a program.)
|
|
Whether the calculator is set to PRGM mode or normal mode, when you press
GTO
· nnn, the calculator
immediately jumps to the program memory line number specified by the
three-digit number nnn. Remember
GTO
· nnn always goes to the line
number of the current program. If the calculator is not already within the
boundary of the desired program, you can easily set it to that program by
pressing
GTO
· and specifying the program
name (e.g., g
GTO
·
ALPHA AREA
ALPHA ).
|
|
Let’s use GTO
· nnn to set the calculator to
line 015. We will insert a PSE instruction after that
line to review the contents of the X-register (which is, at that time, the area of
the cylinder without the top and bottom).
|
|
|
|
When you added the PSE instruction, the program
was altered ...
|