73
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-11 Logic Instructions
DOUBLE EXCLU-
SIVE OR
XORL
@XORL
612
Output
Required
442
EXCLUSIVE NOR
XNRW
@XNRW
037
Output
Required
444
DOUBLE EXCLU-
SIVE NOR
XNRL
@XNRL
613
Output
Required
444
COMPLEMENT
COM
@COM
029
Output
Required
446
DOUBLE COM-
PLEMENT
COML
@COML
614
Output
Required
446
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
XORL(612)
I
1
I
2
R
I
1
: 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)
I
1
: 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
I
1
: 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.
Wd: Word
Wd
COM(029)
Turns OFF all ON bits and turns ON all OFF bits in Wd.
W
W
:1
n
1
COML(614)
Wd
W
:W
r
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
W
+1
W
W
+1
W