Appendices
A-1-11
Logic Instructions
Instruction
Mnemonic
LOGICAL AND
ANDW
DOUBLE
ANDL
LOGICAL AND
LOGICAL OR
ORW
DOUBLE
ORWL
LOGICAL OR
EXCLUSIVE
XORW
OR
DOUBLE
XORL
EXCLUSIVE
OR
A-26
Variations
Symbol/Operand
@
ANDW(034)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
@
ANDL(610)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
@
ORW(035)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
@
ORWL(611)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
@
XORW(036)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
@
XORL(612)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
Function
Takes the logical AND of corresponding bits in single words of
word data and/or constants.
I
. I
R
1
2
I
I
R
1
2
1
1
1
1
0
0
1
0
0
0
0
0
Takes the logical AND of corresponding bits in double words of
word data and/or constants.
(I
I
+1). (I
I
+1)
(R, R+1)
1
,
1
2
,
2
I
I
+1
I
I
+1
R, R+1
1
,
1
2
,
2
1
1
1
1
0
0
1
0
0
0
0
0
Takes the logical OR of corresponding bits in single words of word
data and/or constants.
I
+ I
R
2
1
I
I
R
1
2
1
1
1
1
0
1
0
1
1
0
0
0
Takes the logical OR of corresponding bits in double words of
word data and/or constants.
(I
I
+1) + (I
I
+1)
(R, R+1)
,
,
1
1
2
2
I
I
+1
I
I
+1
R, R+1
1
,
1
2
,
2
1
1
1
1
0
1
0
1
1
0
0
0
Takes the logical exclusive OR of corresponding bits in single
words of word data and/or constants.
I
. I
+ I
.I
R
1
2
1
2
I
I
R
1
2
1
1
0
1
0
1
0
1
1
0
0
0
Takes the logical exclusive OR of corresponding bits in double
words of word data and/or constants.
(I
I
+1). (I
I
+1) + (I
I
+1). (I
I
+1)
,
,
,
,
1
1
2
2
1
1
2
2
I
I
+1
I
I
+1
R, R+1
1
,
1
2
,
2
1
1
0
1
0
1
1
0
1
0
0
0
CP1E CPU Unit Software User's Manual(W480)
(R, R+1)
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers