(132)
XORW 0010 0020 D00200
0000
00
343
5-25-3 EXCLUSIVE OR: XORW(132)
Variations
j XORW(132)
(132)
XORW I
1
I
2
R
I
2
: Input 2 CIO, G, A, T, C, #, DM, DR, IR
R: Result word CIO, G, A, DM, DR, IR
I
1
: Input 1 CIO, G, A, T, C, #, DM, DR, IR
Operand Data AreasLadder Symbol
When the execution condition is OFF, XORW(132) is not executed. When the
execution condition is ON, XORW(132) exclusively OR’s corresponding bits of
I
1
and I
2
and places the result in R.
Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
EQ (A50006): The result is 0.
N (A50008): Shows the status of bit 15 of R after execution.
Example When CIO 000000 is ON in the following example, the logical exclusive OR is
taken of corresponding bits in CIO 0010 and CIO 0020 and the results is placed
in corresponding bits of D00200.
Address Instruction Operands
00000 LD 000000
00001 XORW(132)
0010
0020
D0020
10 0110 0110 0110 01
15 00
01 0101 0101 0101 01
11 0011 0011 0011 00
15 00
15 00
CIO 0010
CIO 0020
D00200
5-25-4 EXCLUSIVE NOR: XNRW(133)
Variations
j XNRW(133)
(133)
XNRW I
1
I
2
R
I
2
: Input 2 CIO, G, A, T, C, #, DM, DR, IR
R: Result word CIO, G, A, DM, DR, IR
I
1
: Input 1 CIO, G, A, T, C, #, DM, DR, IR
Operand Data AreasLadder Symbol
When the execution condition is OFF, XNRW(133) is not executed. When the
execution condition is ON, XNRW(133) exclusively NOR’s corresponding bits of
I
1
and I
2
and places the result in R.
Refer to page 115 for general precautions on operand data areas.
Description
Precautions
Description
Precautions
Logic Instructions Section 5-25