![Omron CJ1G-CPUxx Instructions Manual Download Page 505](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491505.webp)
484
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
1
1
0
1
0
1
0
1
1
0
0
0
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.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...