ARMv8-A Architecture Flashcards
is ARM a RISC or CISC machine
Advanced RISC Machine
Does ARM use a von Neumann or Harvard architecture?
Von Neumann.(RAM contains both data and programs)
What is the use of registers x0-x7?
Used to pass arguments into a procedure and return results
Callee-saved registers
Registers where the value is preserved by any function call
Purpose of the Stack Pointer
Used to point to the top of the runtime stack
Purpose of the Program Counter
Holds the address of the currently executing instruction
mov x29, sp is an alias for…
add x29, sp, 0
mov Wd, Wn is an alias for…
orr Wd, wzr, Wn
stp x29, x30
Stores the contents of the pair of registers to the stack
mov x29, sp
Updates the FP to the current SP
ldp x29, x30
Restores the state of the FP and LR registers
Calculation of
madd x19, x20, x21, x22
x19 = x22+(x20 X x21)
Z flag returns true when…
result is zero
N flag returns true when…
result is negative
V flag returns true when…
result overflows