Справочник Пользователя для Mitsubishi Electronics QCPU

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