State what the output is from this code segment


ldr r0,=MyData
ldr r1,=D1
ldr r1,[r1]
ldr r2,=D2
ldr r2,[r2]
mov r9,r2,LSL #2
add r9,r9,#4
mov r8,r0
mov r7,r1
PrD1:
ldr r1,[r8],r9
print R1 @fake instruction to show output from R1
subs r7,r7,#1
bne PrD1

Assume you are executing with the following hard coded data:
.data
MyData: .word 1 2 3 4 5 6 7 8 9
D1: .word 3
D2: .word 3

State what the output is from this code segment, i.e. what is printed by the fake print instruction forR1.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: State what the output is from this code segment
Reference No:- TGS097128

Expected delivery within 24 Hours