
Chapter 5. Application instructions
5-68
5.10.3 WXOR, WXORP, DWXOR, DWXORP
WXOR
(Word exclusive OR)
FUN(160) WXOR
FUN(162) DWXOR
FUN(161) WXORP
FUN(163) DWXORP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O O O O O O
O
O
O
O O O O O
O
O
O
O
O
WXOR(P)
DWXOR(P)
O O O O*
O O
O O
7/9/11
O
O
* Available only when do not use computer link module or data link module
1) Functions
-
WXOR(P) : Performs the exclusive OR of the 16- bit data of device specified at [ S1 ] and [ S2 ] per
bit. Then stores the result of logical production into the device specified at [ D ].
-
DWXOR(P) : Performs the exclusive OR of the 32-bit data of device specified as [ S1+1, S1 ] and
[ S2+1, S2 ] per bit, and stores the result into the device specified at [ D+1, D ].
-
If the result of exclusive OR is 0, the zero flag (F111) is set.
-
If the indirect address specified by #D format is out of device range, the operation error occurs and
the error flag (F110) is set.
Operand setting
WXOR
WXORP
DWXOR
DWXORP
S1
S1
S2
S2
S1
S2
D
D
D
Data for which exclusive
OR will be performed
The device at which the
result of exclusive OR is
stored
S1
S2
D
16 bits
0
0
1
1
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
0
0
0
1
0
0
1
0
0
1
1
0
1
WXOR
h3AD3
h224D
0
1
0
1
1
0
0
0
1
0
0
1
1
1
1
0
h589E
S1
S2
D