Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Spoz you have the following instructions below. Explain what the instruction is

ID: 3852506 • Letter: S

Question


Spoz you have the following instructions below. Explain what the instruction is performing, as well as determining if the instruction is from an ARM assembly program, or from an Intel assembly program. Explain why and what the comparable command would be for the other processor (if the instruction given for Intel, provide the comparable ARM instruction). Note that each instruction is separate from any other instructions in this problem. a. ADD R2, R2, R1: Adds ______ and places the result in ______ The instruction is from (ARM/Intel x86 circle one) The equivalent instruction in (ARM/Intel x86 circle one) is ______ J some_subroutine:: ______ The instruction is from (ARM/Intel x86 circle one) The equivalent instruction in (ARM/Intel x86 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 x86 circle one) The equivalent instruction in (ARM/Intel x86 circle one) is ______

Explanation / Answer

a.) R2 + R1 and places it in R2

The given instruction is used to add the two variables and put the result in the R2 variable.

ARM

It is been written in ARM(Advanced RISC Machines)

add eax, offset b

This is the statement for adding in the x86 assembly language

b.) x86

  The sub routine call of the desired instruction is in the x86 assembly language.

c.) R0 to 0 , R0

It is comparing the R0 with 0 and saving the values to R0.

  ARM

The given instruction is in the orm of ARM in the question.

Please rate the answer if it helped.....Thankyou

Hope it helps.....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote