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