Standard
RLL Instructions
5–54
Standard RLL Instructions
Accumulator / Stack Load and Output Data Instructions
In the example below, when C0 is on, the value 4545 that was on top of the stack is
moved into the accumulator using the Pop instruction The value is output to V2000
using the Out instruction. The next Pop moves the value 3792 into the accumulator
and outputs the value to V2001. The last Pop moves the value 7930 into the
accumulator and outputs the value to V2002. Please note if the value in the stack
were greater than 16 bits (4 digits) the Out Double instruction would be used and 2 V
memory locations for each Out Double must be allocated.
Handheld Programmer Keystrokes
Acc.
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
POP
C0
POP
POP
V2000
4545
XXXX XXXX
Acc.
0000 4545
Previous Acc. value
Current Acc. value
00003792
Level 1
00007930
Level 2
XXXXXXXX
Level 3
XXXXXXXX
Level 4
XXXXXXXX
Level 5
XXXXXXXX
Level 6
XXXXXXXX
Level 7
XXXXXXXX
Level 8
Accumulator Stack
00007930
Level 1
XXXXXXXX
Level 2
XXXXXXXX
Level 3
XXXXXXXX
Level 4
XXXXXXXX
Level 5
XXXXXXXX
Level 6
XXXXXXXX
Level 7
XXXXXXXX
Level 8
Accumulator Stack
XXXXXXXX
Level 1
XXXXXXXX
Level 2
XXXXXXXX
Level 3
XXXXXXXX
Level 4
XXXXXXXX
Level 5
XXXXXXXX
Level 6
XXXXXXXX
Level 7
XXXXXXXX
Level 8
Accumulator Stack
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
OUT
V2000
OUT
V2001
Acc.
V2001
3792
0000 4545
Acc.
0000 3792
Previous Acc. value
Current Acc. value
Acc.
V2002
7930
0000 3792
Acc.
0000 7930
Previous Acc. value
Current Acc. value
OUT
V2002
Copy the value in the lower 16 bits of
the accumulator to V2000
Copy the value in the lower 16 bits of
the accumulator to V2001
Copy the value in the lower 16 bits of
the accumulator to V2002
DirectSOFT
STR
$
SHFT
2
C
0
A
ENT
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
0
A
ENT
0
A
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
ENT
0
A
1
B
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
ENT
0
A
2
C
SHFT
SHFT
SHFT
Pop Instruction
Continued