Spoz you have the following instructions below. Explain what the instruction is
ID: 3852534 • Letter: S
Question
Explanation / Answer
Adds R1 and R2
and places result in R2
ARM instruction
Equivalent Intel instruction- ADD destinationOperand, sourceOperand and performs destination=destination+source
some_subroutine is from Intel x86 which is used for calling functions.
The equivalent instruction in ARM is BL destination (branch and link) where destination is usually the label on the first instruction of the subroutine.
CMP R0, 0 compares the R0 value to 0 and the result is placed in nothing as it is discarded.
The instruction is from Intel x86.
The equivalent ARM instruction is CMP Rn, operand2 (Flags set to result of (Rn Operand2))
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.