Chapter 5: Standard RLL Instructions - Logical
Or with Stack (ORS)
1
The Or with Stack instruction is a 32-bit instruction that
230
logically ORs the value in the accumulator with the first level
240
of the accumulator stack. The result resides in the
2
accumulator. The value in the first level of the accumulator
250-1
stack is removed from the stack and all values are moved up
260
3
one level. Discrete status flags indicate if the result of the Or
with Stack is zero or a negative number (the most significant
DS
Used
bit is on).
4
HPP Used
5
SP63
SP70
6
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.
7
DirectSOFT
X1
8
Load the value in V1400 and
V1401 in the accumulator
9
10
11
12
13
Handheld Programmer Keystrokes
$
B
14
STR
L
D
SHFT
ANDST
Q
S
SHFT
A
OR
RST
GX
D
SHFT
OUT
B
C
D
5–78
DL205 User Manual, 4th Edition, Rev. B
Discrete Bit Flags
LDD
V1400
Acc.
ORS
Acc.
OR the value in the
36476A38
accumulator with the value
OR (top of stack)
in the first level of the
accumulator stack
Acc.
OUTD
V1500
Copy the value in the
accumulator to V1500 and
V1501
ENT
1
D
B
E
3
3
1
4
ENT
B
F
A
3
1
5
0
Will be on if the result in the accumulator is zero
Will be on if the result in the accumulator is negative
V1401
5
4
7
E
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
0
1
0 1
0
1
0
0 0
1
1
1
0
1
0 1
0
1
0
0 0
1
1
1
0
0
1
1
0 1
1
0
0
1 0
0
0
0
1
0
0 0
1 1
0
0
1
1
0
1
0 0
0 0
0
1
1
0
0
1
7
6
7
F
V1501
A
A
ENT
0
0
A
ENT
0
O R S
Description
V1400
2
8
7
15 14 13 12 11 10 9
8 7
1 1
1
0
0
0
1 0
1
0
0
0 0
1 1
1
0
0
0
1 0
1
0
0
0 0
0
1
1 1
0
1
1
0
1 0
1
0
0
0 0
1 1
0
1
1
0
0
1
1 0
1
0
1
0 0
6
A
7
V1500
A
6 5
4 3
2
1
0
1
1
1
1 0
1
0
1
1
1
1 0
1
0
0 1
1
1
0
0 0
1
1
1
1 0
1
0
A
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?