Question: 1.What is the value of r0 after the code below executes? date: .int 1000, .int 100 do: ldr r0, =date ldr r0, [r0, 4] add
1.What is the value of r0 after the code below executes? date: .int 1000, .int 100 do: ldr r0, =date ldr r0, [r0, 4] add r0, r0, 10 bx lr main: bl do
110 1000 100 1010
2.What is the value of r0 after the code below executes? some: .int 5 main: ldr r0, =some ldr r0, [r0] 1: subs r0, 1 it eq beq 1f b 1b 1:
0 1 5 -1
3.What is the value of r0 after the code below executes? val: .int 100 do: push {r3, lr} ldr r3, =val ldr r3, [r3] cmp r3, 100 it lt addlt r3, 10 it gt addgt r3, 5 mov r0, r3 pop {r3, pc} main: ldr r0, =val ldr r1, [r0] add r1, r1, 11 str r1, [r0] bl do
111 116 11 100 5 10
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
