Chapter 5: Standard RLL Instructions - Logical
Exclusive Or Double (XORD)
1
The Exclusive Or Double is a 32-bit instruction that
230
performs an exclusive OR of the value in the
240
accumulator and the value (Kaaa), which is an
2
250-1
8-digit (max.) constant. The result resides in the
260
accumulator. Discrete status flags indicate if the
3
result of the Exclusive Or Double is zero or a
negative number (the most significant bit is on).
DS
Used
4
HPP Used
Operand Data Type
5
Constant
NOTE: The status flags are only valid until another instruction that uses the same flags is executed.
6
In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into
7
SP63
SP70
8
the accumulator using the Load Double instruction. The value in the accumulator is
exclusively ORed with 36476A38 using the Exclusive Or Double instruction. The value in
9
the accumulator is output to V2010 and V2011 using the Out Double instruction.
10
11
DirectSOFT
X1
LDD
12
Load the value in V2000 and
V2001 into the accumulator
13
XORD
K36476A38
XORD the value in the
accumulator with
14
the constant value
36476A38
OUTD
A
Copy the value in the
accumulator to V2010
and V2011
B
Handheld Programmer Keystrokes
$
B
STR
1
C
L
D
SHFT
ANDST
3
X
Q
SHFT
D
SET
OR
D
G
E
3
6
4
GX
D
SHFT
OUT
3
5–80
DL205 User Manual, 4th Edition, Rev. B
DL230 Range DL240 Range DL250-1 Range DL260 Range
K
Discrete Bit Flags
V2000
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.
XORD 36476A38
Acc.
V2010
ENT
D
C
A
A
3
2
0
0
D
K
SHFT
SHFT
3
JMP
H
G
A
SHFT
SHFT
7
6
0
C
A
B
A
2
0
1
0
aaa
aaa
0-FFFFFFFF
0-FFFFFFFF
Will be on if the result in the accumulator is zero
Will be on if the result in the accumulator is negative
V2001
5
4
7
E
?
0 1
0 1
0 1 0
0 0 1 1
1 1 1
0 1
0 1
0 1 0
0 0 1 1
1 1 1
0
0 1
1 0 1
1 0
0 1
0 0
0 0
0 1
1 0
0 0
0 1 0
0 0 1
0 0 0 0
0 0 0 1
1 1 0 0 1
0 0 0 0 0
6
2
3
9
V2011
A
ENT
0
D
I
ENT
3
8
ENT
XORD
K aaa
aaa
0-FFFFFFFF
Description
V2000
2
8
15 14 13 12 11 10 9 8 7 6 5 4 3
1 0
0
0 1 0 1 0
0 0
1 0
0
0 1 0
1 0
0 0 0 1 1
0 1 1
1
0 1 1
0 1
0 1 0 0 0 1 1
0
1 0 0 0 0
1 0
4
2
V2010
aaa
0-FFFFFFFF
7
A
2 1 0
0 1 1 1
1 0 1
0
1 1
0 1 0
1 0 0 0
0 1 0 0 0
0 1
0
4
2
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?