Question: We have the following partial ARMv7 program: .global _start _start: mov r1, #21 mov r2, #43 mov r3, #76 mov r4, #99 stmfd sp!, {r1,

We have the following partial ARMv7 program:

.global _start

_start:

mov r1, #21

mov r2, #43

mov r3, #76

mov r4, #99

stmfd sp!, {r1, r2, r3} @ line a

LDMFD sp!, {r2, r3} @ line b

stmfd sp!, {r1, r4} @ line c

LDMFD sp!, {r2} @ line d

LDMFD sp!, {r3, r4} @ line e

For each of the lines (a through e), (a) Write the contents of the four given registers AFTER the instruction executes.

(b) Draw a picture showing the state of the stack AFTER the instruction executes. i. In your picture, lower addresses should be at the top

. ii. Indicate what position the stack pointer is pointing at.

iii. Dont worry about noting the addresses of the stack locations, but be clear as to what the bottom of the stack is.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!