Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

. pntsi Assume the size data ol datn memory is 12 bytes. Also assume the memory

ID: 3906065 • Letter: #

Question

. pntsi Assume the size data ol datn memory is 12 bytes. Also assume the memory is addresed by byte and are initially set to (00hex. Determine the content of the memory when the fllowing sequence is completely executed: Initial state of memory Address Content Final state of memory Address Content 11 00 hs 10 0hex 9hex addi Sto, Szero, 7432 sw $t0, 0(Szero) addi $to, St0, 1034 sw $t0, 4(Szero) addi $to, Sto, 523 sw $t0, 8(Szero) 10 (00 hes 9 00 hex 8 (00 hex 7 (00 hs 6 00 es 5 00 hes 4 (00 hes 3 00hex 2 (00h 100 0 00 hex 5 hex 2hex

Explanation / Answer

Size of the data memory is 12 bytes.

first instruction is an add instruction.

so t0 will contain 7432 value in decimal after the operation. In hex it will be 1D08.

Next is a store instruction which will store 1D08 in hexadecimal to zeroth location in memory.

So memory will be updated as

so 3rd location will have 1 value

2nd location will have D value

1st location will have 0 value

and 0th location will have 8 value.

The next set of instructions store 1034 in decimal to the memory location.In hex it will be 40A. So memory will be updated as

7th location - 0

6th location - 4

5th location - 0

4th location - A

The next set of instructions store 523 in decimal to the memory location.In hex it will be 20B. So memory will be updated as

11th location - 0

10th location - 2

9th location - 0

8th location - B

So the final memory will look as shown below:

11 - 0

10 - 2

9 - 0

8 - B

7 - 0

6 - 4

5 - 0

4 - A

3 - 1

2 - D

1 - 0

0 - 8