Week 9 - 4.6 Logical Operations Flashcards

1
Q

What are the logical operations for OR?

A

OR. ,Dn
OR. Dn,
ORI. #N,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the logical operations for AND?

A

AND. ,Dn
AND. Dn,
ANDI. #N,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the logical operations for EOR?

A

EOR. Dn,

EORI. #N,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the logical operation for NOT?

A

NOT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which logical operations require that either the source or destination operands be a data register?

A

OR and AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does EOR require the source to be?

A

data register.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the size parameters for AND, OR, EOR, and NOT?

A

B, W, or L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

0FF0 1234 A017
A D3

OR.W A, D3
result?

A

1234 AFF7

D3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is EOR for?

A

It gives the sign of the product.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly