DL205 User Manual, 4th Edition, Rev. B
5–70
Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Pop (POP)
The Pop instruction moves the value from the first level
of the accumulator stack (32 bits) to the accumulator
and shifts each value in the stack up one level. 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 two V-memory
locations for each Out Double must be allocated.
POP
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
4 5 4 5
X X X X X X X X
X X X X
Acc. 0 0 0 0 4 5 4 5
4 5 4 5
Previous Acc. value
Current Acc. value
0 0 0 0 3 7 9 2
0 0
Level 1
0 0 0 0 7 9 3 0
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
Level 8
Accumulator Stack
0 0 0 0 7 9 3 0
Level 1
X X X X X X X X
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
Level 8
Accumulator Stack
X X X X X X X X
Level 1
X X X X X X X X
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
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
3 7 9 2
0 0 0 0 4 5 4 5
4 5 4 5
Acc. 0 0 0 0
3 7 9 2
Previous Acc. value
Current Acc. value
Acc.
V2002
7 9 3 0
0 0 0 0
3 7 9 2
Acc. 0 0 0 0
7 9 3 0
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
Direct
SOFT
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
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
þ
þ
þ
þ
230
240
250-1
260
DS
Used
HPP Used