ECE 252 mindless meorization Flashcards
Flags tested for EQ
Z=1
Flags tested for NE
Z=0
Flags tested for GT
Z=0 & N=V
Flags tested for GE
N=V
Flags tested for LT
N!=V
Flags tested for LE
Z=1 or N!=V
3 tests for equivalence
CMP, TEQ, SUBS
Instructions for DCD
LDR, STR
Instructions for DCB
LDRB, LDRSB, STRB
Instructions for DCW
LDRH, LDRSH, STRH
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.
What is ASR used for?
Division by 2^n
What is LSL used for?
Multiplication by 2^n
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.
What flags do logical operations (AND/OR) touch?
N and Z
What is the range representable by 2’s compliment?
-2^(n-1) to 2^(n-1)-1
What does REV do?
Reverse the byte order in a word. The the last byte becomes the first byte and so on.
What does REV16 do?
Reverse the byte order of the two half words
What does SX usually mean?
Something is done and a negative sign extension is applied.
How is a rotate left done?
Do a ROR with 32-the desired shift to the left.