ECE 252 mindless meorization Flashcards Preview

Finals Spring 2015 > ECE 252 mindless meorization > Flashcards

Flashcards in ECE 252 mindless meorization Deck (20)
Loading flashcards...
1

Flags tested for EQ

Z=1

2

Flags tested for NE

Z=0

3

Flags tested for GT

Z=0 & N=V

4

Flags tested for GE

N=V

5

Flags tested for LT

N!=V

6

Flags tested for LE

Z=1 or N!=V

7

3 tests for equivalence

CMP, TEQ, SUBS

8

Instructions for DCD

LDR, STR

9

Instructions for DCB

LDRB, LDRSB, STRB

10

Instructions for DCW

LDRH, LDRSH, STRH

11

What is the Q flag used for?

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

12

What is ASR used for?

Division by 2^n

13

What is LSL used for?

Multiplication by 2^n

14

What is the carry flag used for?

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.

15

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

N and Z

16

What is the range representable by 2's compliment?

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

17

What does REV do?

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

18

What does REV16 do?

Reverse the byte order of the two half words

19

What does SX usually mean?

Something is done and a negative sign extension is applied.

20

How is a rotate left done?

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