558
Logic Instructions Section 3-13
Description XORL(612) takes the logical exclusive OR of data specified in I
1
and I
2
as
double-word data and outputs the result to R, R+1.
• When the content of any of the corresponding bits in I
1,
I
1
+1, I
2,
and
I
2
+1are different, a 1 will be output to the corresponding bit it R, R+1. When
any of them are the same, a 0 will be output to the corresponding bit in R,
R+1.
(I
1,
I
1
+1), (I
2
, I
2
+1)
+ (I
1
, I
1
+1), (I
2
, I
2
+1)→ (R, R+1)
Flags
Precautions When XORL(612) is executed, the Error Flag will turn OFF.
If as a result of the exclusive OR, the content of R, R+1 is 00000000 hex, the
Equals Flag will turn ON.
If as a result of the exclusive OR, the leftmost bit of R+1 is 1, the Negative
Flag will turn ON.
Examples When the execution condition CIO 00000000 is ON, the logical exclusive OR
is taken of corresponding bits in CIO 0901, CIO 0900 and D01001, D01000
and the results will be output to corresponding bits in D01201 and D01200.
I
1,
I
1
+1 I
2,
I
2
+1 R, R+1
110
101
011
000
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the result is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of R is 1.
OFF in all other cases.
S: 0900 CH
S
1
+1: 0901 CH
S: D01000
S
2
+1: D01001
D: D01200
D+1: D01201
Note: The symbol indicates exclusive logical OR.