Chapter 3: Extra Stuff Flashcards
What does LR stand for?
Link Register
What does SP stand for?
Stack Pointer
What does FP stand for?
Frame pointer
In ARM, the r15 is what?
The PC
In ARM, the r14 is what?
The Link Register (LR)
In ARM, the r13 is what?
The Stack Pointer (SP)
In ARM, the r11 is what?
The Frame Pointer (FP)
In ARM, the r11 is what?
The Frame Pointer (FP)
What is “sign-extension”
Copying the leading bit, or “extending” it to fill the leading spaces when the value is copied, effectively extending the plus or minus sign to an extent
What is “sign-extension”
Copying the leading bit, or “extending” it to fill the leading spaces when the value is copied, effectively extending the plus or minus sign to an extent
Is LDR r0, = 0x12234 a pseudo instruction?
Yes
is ADR r0, label a psuedo instruction?
Yes
is NEG a psuedo instruction?
Yes
What do TEQ, TST, CMP, and CMN do exactly?
CMP = r0 - r1
CMN = r0 - (-r1)
TST = ANDs the two operands together (usually used for testing individual bits)
TEQ = Performs an EORS on the two operands and discards the results
CMP and CMN update which flags?
All flags