Week 9 - 4.6 Logical Operations Flashcards
1
Q
What are the logical operations for OR?
A
OR. ,Dn
OR. Dn,
ORI. #N,
2
Q
What are the logical operations for AND?
A
AND. ,Dn
AND. Dn,
ANDI. #N,
3
Q
What are the logical operations for EOR?
A
EOR. Dn,
EORI. #N,
4
Q
What is the logical operation for NOT?
A
NOT.
5
Q
Which logical operations require that either the source or destination operands be a data register?
A
OR and AND
6
Q
What does EOR require the source to be?
A
data register.
7
Q
What are the size parameters for AND, OR, EOR, and NOT?
A
B, W, or L
8
Q
0FF0 1234 A017
A D3
OR.W A, D3
result?
A
1234 AFF7
D3
9
Q
1986 0ADE
(A4)
ANDI.L #$00FF00FF, (A4)
result?
A
The source operand is a mask. Every other byte of the long word at A4 is cleared. 00FF 00FF 1986 0ADE ----------------- 0086 00DE A4
10
Q
What is EOR for?
A
It gives the sign of the product.