Standard
RLL Instructions
5–48
Standard RLL Instructions
Accumulator / Stack Load and Output Data Instructions
LD
A aaa
The Load instruction is a 16 bit instruction
that loads the value (Aaaa), which is either
a V memory location or a 4 digit constant,
into the lower 16 bits of the accumulator.
The upper 16 bits of the accumulator are
set to 0.
Operand Data Type DL05 Range
A aaa
V memory V All (See page 4–28)
Pointer P All V mem. (See page 4–28)
Constant K 0–FFFF
Discrete Bit Flags Description
SP53 on when the pointer is outside of the available range.
SP70 on when the value loaded into the accumulator by any instruction is zero.
SP76 on when the result in the accumulator is negative.
NOTE: Two consecutive Load instructions will place the value of the first load
instruction onto the accumulator stack.
In the following example, when X1 is on, the value in V2000 will be loaded into the
accumulator and output to V2010.
LD
V2000
X1
Load the value in V2000 into
the lower 16 bits of the
accumulator
OUT
V2010
Copy the value in the lower
16 bits of the accumulator to
V2010
V2010
Acc.
V2000
8935
8935
0000 8935
DirectSOFT
The unused accumulator
bits are set to zero
1
B
2
C
0
A
0
A
0
A
ENT
Handheld Programmer Keystrokes
STR
$
SET
X
SHFT
ANDST
L
3
D
OUT
GX
SHFT
AND
V
2
C
0
A
1
B
0
A
ENT
Load
(LD)