Appendices
A-36
CJ2 CPU Unit Software User’s Manual
DOUBLE
LOGICAL OR
ORWL
@ORWL
611 Output Required
EXCLUSIVE
OR
XORW
@XORW
036 Output Required
DOUBLE
EXCLUSIVE
OR
XORL
@XORL
612 Output Required
EXCLUSIVE
NOR
XNRW
@XNRW
037 Output Required
DOUBLE
EXCLUSIVE
NOR
XNRL
@XNRL
613 Output Required
COMPLEMENT COM
@COM
029 Output Required
DOUBLE COM-
PLEMENT
COML
@COML
614 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
I
1
I
2
R
ORWL(611)
I1: Input 1
I
2: Input 2
R: Result word
(I
1
, I
1
+1) + (I
2
, I
2
+1) → (R, R+1)
I
1
, I
1
+1
1
1
0
0
I
2
, I
2
+1
1
0
1
0
R, R+1
1
1
1
0
Takes the logical OR of corresponding bits in
double words of word data and/or constants.
I
1
I
2
R
XORW(036)
I1: Input 1
I
2: Input 2
R: Result word
I
1
.
I
2
+
I
1
.I
2
→R
I
1
1
1
0
0
I
2
1
0
1
0
R
0
1
1
0
Takes the logical exclusive OR of corresponding
bits in single words of word data and/or constants.
XORL(612)
I
1
I
2
R
I1: Input 1
I
2: Input 2
R: Result word
(I
1
, I
1
+1). (I
2
, I
2
+1) + (I
1
, I
1
+1). (I
2
, I
2
+1) → (R, R+1)
I
1
, I
1
+1
1
1
0
0
I
2
, I
2
+1
1
0
1
0
R, R+1
0
1
1
0
?
Takes the logical exclusive OR of corresponding
bits in double words of word data and/or constants.
I
1
I
2
R
XNRW(037)
I1: Input 1
I
2: Input 2
R: Result word
I
1
.
I
2
+
I
1
.I
2
→R
I
1
1
1
0
0
I
2
1
0
1
0
R
1
0
0
1
Takes the logical exclusive NOR of corresponding
single words of word data and/or constants.
XNRL(613)
I
1
I
2
R
I1: Input 1
I
2: Input 2
R: 1st result word
(I
1
,
I
1
+1). (I
2
,
I
2
+1) + (I
1
,
I
1
+1). (I
2
,
I
2
+1) → (R, R+1)
I
1
,
I
1
+1
1
1
0
0
I
2
,
I
2
+1
1
0
1
0
R, R+1
1
0
0
1
Takes the logical exclusive NOR of corresponding
bits in double words of word data and/or constants.
COM(029)
Wd
Wd: Word
Wd → Wd: 1 → 0 and 0 → 1
Turns OFF all ON bits and turns ON all OFF bits in Wd.
COML(614)
Wd
Wd: Word
(Wd+1, Wd) → (Wd+1, Wd)
Turns OFF all ON bits and turns ON all OFF bits in
Wd and Wd+1.