Indirect Index Register Functions - HP -11C Owner's Handbook Manual

Hide thumbs Also See for HP-11C:
Table of Contents

Advertisement

130
Section 9: The Index Register
'Indirect Index Register Functions
Indirect Index register functions do not affect the contents of Rj.
Instead, they use the nnnnn (integer) portion of the number stored
in R; as an address for determining where in memory to execute the
function. Indirect functions are frequently used in conjunction
with (ISG] or [DSE]in programs when it is desirable to use the same
program
instruction repeatedly to sequentially address storage
registers, branches, or subroutines.
Indirect Storage and Recall. {STO} [{i)) and (RCL [(j)* store or
recall numbers using the data storage register addressed by the
absolute value of nnnnn. For addressing Ry through Rg, nnnnn =
0 through 9; for Ro through Ro, nnnnn = 10 through 19; for Ry,
nnnnn
= 20. (Refer to the Indirect Addressing
table on the
following page.)
Exchange X, Indirect.
[f] {x=()] exchanges the contents of the
X-register with the contents of the storage register addressed by the
absolute value of nnnnn.
Indirect Storage Register Arithmetic.
(S70) ((J, ),
KJ, or F))
performs storage register arithmetic on the contents of the
storage register addressed by the absolute value of nnnnn.
Examples
If 5.01202 is stored in the Index register:
nnnnn=5
xxx=012
yy =02
STO)(@) = [Sto)5
(Q= 1) = Exchange X-register and Rg Contents
sTOIGIT)
=
(Sto]G)5
Indirect Branching to Label or Line Number. In a running
program:
1.
If mnnnn is 2 0, (GTO) [1] branches execution downward in
program memory to the next label specified by nnnnn.
* Refer to page 127,
(iJ and [{j] Abbreviated Key Sequences.
~~
©
~~ eee
YH
So
ee
a ae
Section 9: The Index Register
431
nnnnn.
For example:
mnnnn =5
annnn = -5
[ooo-
003- (GTo){i)
004- instruction
007- (iBL)5
008- Instruction
Indirect Subroutine
Label or Line Number.
In a running
program,
(GS8)] [I] indirectly transfers execution to a subroutine in
the same
way
that
[GTO]
(1) indirectly transfers execution
to a
branch.
Indirect Addressing Table
(GTO]or (GSB)[1)
STO)((H) or (RELIG)
'f nnnnn is:
transfers
addresses
execution to:
storage register:
Wetjo

Advertisement

Table of Contents
loading

Table of Contents