Download Print this page

Load And Store Instructions; Load Multiple (Lm); Store Multiple (Stm) - RCA Spectra 70 Training Manual

System
Hide thumbs

Advertisement

LOAD AN D STORE REGISTER
There are two instructions that enable the program-
mer to address registers so that he may either load
a value in the register(s) selected, or store the con-
tents of the register(s) in memory.
The four-byte memory locations used for either
storing or loading registers must be word-oriented.
LOAD MULTIPLE
This instruction places designated value(s) into one
or more consecutively numbered general registers.
The following instruction:
NAME
OPERATION
OPERAND
LM
3,3, ALPHA
loads General Register 3 with the value stored in the
word-oriented four-byte addresses by ALPHA.
The instruction below loads General Registers 2, 3,
4, 5, 6, and 7 with the values stored in the word-
oriented 24 bytes addressed by ALPHA.
NAME
OPERATION
OPERAND
Example:
HSM BEFORE
AND AFTER
EXECUTION
LM
GENERAL REGISTERS 1-8
BEFORE EXECUTION
ASSEMBLY
INSTRUCTION
NAME
2,7, ALPHA
1
I
0000 10
3
I
8192 10
5
I
16384 10
7
I
24576 10
OPERATION
LM
2
I
4096 10
4
I
12288 10
6
I
20480 10
8
I
28672 10
OPERAND
2,7, ALPHA
41
OP
B2
GENERATED
INSTRUCTION
1
98 16
2 10
\710
\110
\2400 16
1
GENERAL REGISTER 1
=
0000 10 (AS ABOVE)
GENERAL REGISTERS 1-8
1
2
FOLLOWING EXEOUTION
I
000010
1000 10
3
4
I
2000 10
3000 10
5
6
I
5000 10
6000 10
7
8
I
7000 10
28672 10
STORE MULTIPLE
This instruction places the contents of one or more
consecutively numbered general registers into mem-
ory. The locations that store the register(s) must
be word-oriented. A full word is used for the storage
of the contents of each register.
The Operand format is the same as for the LOAD
MULTIPLE instruction.
Example:
GENERAL REGISTERS 1-8
1
BEFORE AND AFTER
I
0000 10
EXECUTION
3
I
2000 10
5
5000 10
7
I
7000 10
HSM BEFORE
EXECUTION
ASSEMBLY
INSTRUCTION
GENERATED
OP
Rl
R3
B2
D2
INSTRUCTION
1
9011
;
I
2 10
7
10
1
10
240°10
GENERAL REGISTER 1
~
0000
10
(AS ABOVE)
HS;\1 AFTER
EXECUTION
2
I
1000 10
4
I
3000 10
6
I
6000 10
8
I
28672 10

Advertisement

loading

  Also See for RCA Spectra 70

  Related Manuals for RCA Spectra 70

This manual is also suitable for:

Spectra 70/25