Question: Suppose r 0 = 0 x 2 0 0 0 , 0 0 0 0 and r 1 = 0 x 1 2 3 4

Suppose r0=0x2000,0000 and r1=0x12345678. All bytes in memory
are initialized to 0x00. This two line is a part of a program.
STR r1,[r0], #4
STR r1,[r0]
Assume the computer uses Little Endian to store data. Show the memory content
when the above program completes successfully.
Memory Address Memory Content
0x2000,0013
0x2000,0012
0x2000,0011
0x2000,0010
0x2000,000F
0x2000,000E
0x2000,000D
0x2000,000C
0x2000,000B
0x2000,000A
0x2000,0009
0x2000,0008
0x2000,0007
0x2000,0006
0x2000,0005
0x2000,0004
0x2000,0003
0x2000,0002
0x2000,0001
0x2000,0000
What is the value of register R0 after the program completes:
After the first line of code: R0=
After the first second of code: R0=

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 Programming Questions!