Unconditional branching uses the GTO
(go
to)instruction to branch to
a program
label.
It is not possible to branch to a
specific
line number
during a program.
MtiHQ] label
A
Programmed
GTO
Instruction.
The
GTO
label instruction
trans
fers the execution of a running program to the program line
containing that label, wherever it may be. The program continues
running from the new location, and it does
not
everautomatically re
turn to its point of origination, so
GTO
is not used for subroutines.
For example, consider the 'Curve
Fitting*
program on page 204 in
part 4. The
GTO
Z
instruction
branches
execution
from
any one of
threeindependentinitializing routinesto
LBL
Z,the routinethat is the
common
entry point into the heart of the
program:
S01
LBL
S
S05
GTO
Z
L01
LBL
L
L05
GTO
Z
E01
LBL
E
E05
GTO
Z
Z01
LBL
Z
Using
IH"gto1
From
the
Keyboard. If program entry is
not
active
(no
program
lines
displayed;
PRGM
off),
then
you
can
use
111
gtoIto
move
the
program
pointer
to a
specified
label
or line
number
without
starting program execution.
•
To
a
label:
HrGTOl
label
(Example:
Hdjo]
A .)
• To a line number: Sll
gto
I
(T)
label
nn (nn < 100. Example:
1(GTO)(I|A05.)
• To
PRGM
TOP:
BCHESE!
94
6:
Programming
Techniques