7.1
Logical operation instructions
(1) The logical operation instructions perform logical sum, logical product or other logical
operations in 1-bit units.
Category
Logical product
(AND)
Logical sum
(OR)
Exclusive OR
(XOR)
NON exclusive
logical sum
(XNR)
7-2
Processing Details
Becomes 1 only when both input A and
input B are 1; otherwise, is 0
Becomes 0 only when both input A and
input B are 0; otherwise, is 1
Becomes 0 if input A and input B are
equal; otherwise, is 1
Becomes 1 if input A and input B are
equal; otherwise, is 0
Example
Formula for
Operation
A
0
0
Y
A · B
1
1
0
0
Y
A + B
1
1
0
0
Y
A · B + A · B
1
1
0
0
Y
(A + B)(A + B)
1
1
B
Y
0
0
1
0
0
0
1
1
0
0
1
1
0
1
1
1
0
0
1
1
0
1
1
0
0
1
1
0
0
0
1
1