Question: Please provide me with a written solution to facilitate my learning please. Thank you so much! ( a ) Suppose register r 2 holds the
Please provide me with a written solution to facilitate my learning please. Thank you so much!
a Suppose register r holds the address and we execute the following
instruction.
STMIA
Write the memory address that now holds the value which was in registers
r and lr respectively. What is the value of register r after the execution?
Marks
b For the following ARM instructions, write the corresponding equivalent THUMB
instructions.
i LDRB rr #
ii LDMFD sprr r
iii ADDS r r r ASR#
iv STRH rr #
Marks
c Functions and subroutines are written in C and Assembly respectively. They are
called upon one another and must follow the ARM Application Procedure Call
Standard AAPCS A function int int int int int int int f is written
in C How would this function be called from an assembly program?
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
