DL205 User Manual, 4th Edition, Rev. B
5–78
Chapter 5: Standard RLL Instructions - Logical
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Or with Stack (ORS)
The Or with Stack instruction is a 32-bit instruction that
logically ORs the value in the accumulator with the first level
of the accumulator stack. The result resides in the
accumulator. The value in the first level of the accumulator
stack is removed from the stack and all values are moved up
one level. Discrete status flags indicate if the result of the Or
with Stack is zero or a negative number (the most significant
bit is on).
In the following example, when X1 is on, the binary value in the accumulator will be ORed
with the binary value in the first level of the stack. The result resides in the accumulator.
LDD
V1400
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0
0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
V1400
2 8 7 A
0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
Acc.
Acc.
V1500
6 A 7 A
V1401
5 4 7 E
V1501
7 6 7 F
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0
0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0
0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1
Direct
SO
F
T
X
1
L
oad
the
value
in
V1400
and
V1401
in
the
a
cc
umulator
ORS
OR
the
value
in
the
a
cc
umulator
with
the
value
in
the
first
level
of
the
a
cc
umulator
sta
c
k
OUT
D
V1500
36476A38
OR
(top
of
sta
c
k)
Copy
the
value
in
the
a
cc
umulator
to
V1500
and
V1501
Handheld
Programmer
Keystrokes
1
B
E
NT
1
B
4
E
0
A
0
A
E
NT
STR
$
SH
F
T
A
N
D
ST
L
3
D
OUT
GX
SH
F
T
3
D
1
B
5
F
0
A
0
A
E
NT
3
D
OR
Q
SH
F
T
RST
S
E
NT
O
R
S
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
Discrete Bit Flags
Description
SP63
Will be on if the result in the accumulator is zero
SP70
Will be on if the result in the accumulator is negative
DS
Used
HPP Used