ADD R2, R2, R1: Adds _____ _____ and places the result in ______ The instruction
ID: 3852543 • Letter: A
Question
ADD R2, R2, R1: Adds _____ _____ and places the result in ______ The instruction is from(ARM/Intel times 86 circle one) The equivalent instruction in (ARM/Intel times 86 circle one) is ____ J some_subroutine:: _____ The instruction is from (ARM/Intel times 86 circle one) The equivalent instruction in (ARM/Intel times 86 circle one) is _____ CMP R0, 0: Compares _____ to _____ and places the result in (AX/R4/BX/R0/nothing since the result is discarded circle one). The instruction is from (ARM/Intel times 86 circle one) The equivalent instruction in (ARM/Intel times 86 circle one) _____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.