ECE 252 mindless meorization Flashcards

1
Q

Flags tested for EQ

A

Z=1

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

Flags tested for NE

A

Z=0

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

Flags tested for GT

A

Z=0 & N=V

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

Flags tested for GE

A

N=V

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

Flags tested for LT

A

N!=V

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

Flags tested for LE

A

Z=1 or N!=V

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

3 tests for equivalence

A

CMP, TEQ, SUBS

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

Instructions for DCD

A

LDR, STR

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

Instructions for DCB

A

LDRB, LDRSB, STRB

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

Instructions for DCW

A

LDRH, LDRSH, STRH

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

What is the Q flag used for?

A

If a number is saturated. For instance, if a number tested in SSAT or USAT is out of bounds, Q=1.

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

What is ASR used for?

A

Division by 2^n

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

What is LSL used for?

A

Multiplication by 2^n

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

What is the carry flag used for?

A

In addition, it is set to 1 if there is a carry. In subtraction, it is set to 0 if there is a borrow, or 1 otherwise.

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

What flags do logical operations (AND/OR) touch?

A

N and Z

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

What is the range representable by 2’s compliment?

A

-2^(n-1) to 2^(n-1)-1

17
Q

What does REV do?

A

Reverse the byte order in a word. The the last byte becomes the first byte and so on.

18
Q

What does REV16 do?

A

Reverse the byte order of the two half words

19
Q

What does SX usually mean?

A

Something is done and a negative sign extension is applied.

20
Q

How is a rotate left done?

A

Do a ROR with 32-the desired shift to the left.