Indirectly
Addressing
Variables and Labels
Indirect
addressing
is a
technique
used
in
advanced
programming
to
specify
a
variable
or
label
without
specifying
beforehand
exactly
which
one.
Thisis determined when the program runs, so it dependson the
intermediate results (or input) of the program.
Indirect
addressing
uses
two
different
keys:
(7)
(with
Q) and
QjD
(with
fRTsI).*
These
keys
are
active
for
many
functions
that
take
A
through
Z
as
variables
or
labels.
• i is a variable
whose
contents
can
refer
to another variable or label.
It holds a number just like any other
variable
(A
through
Z).
•
GJO
is a programming function that directs,
*Use
the numberin i to
determine
which
variable or
label
to address.*
This
is
an
indirect
address.
(A through Z are
direct
addresses.)
Both
[J]
and
Qjj]
are used together to create an indirect address. (See
the
examples
below.)
By
itself,
i is just another
variable.
By
itself,
QjQ
is either undefined (no number in i) or uncontrolled (using whatever
number happens to be left over in i).
The
Variable
"f"
Youcan store, recall,
and
manipulate the contents of i just as you can
the contents of other variables. Youcan even solve for i
and
integrate
using i.
Functions
That
Use
I
Directly
STO
/
INPUT
/
DSE
/
RCL
/
VIEW
/
ISG
/
STO
+,-,x,-=-
/
/FN/
RCL
+,-,x,-4-
/
SOLVE/
'The
variable
/ has nothing to do with
QJD
or the
variable
i.
6:
Programming
Techniques
103