please i need a clarification in details so I can understand how program store t
ID: 3727537 • Letter: P
Question
please i need a clarification in details so I can understand how program store these values
thanks
Explanation / Answer
First of all the the starting address of array1 is stored in $t1 and as you know before array one there are two characters each occupy 8 bit address space so for the array one the address is starting from 0x1001 0004 as for character 'z' address- 0x10001 0000 to 0x1001 0001 and for character 'y' 0x1001 0002 to 1001 0003. The value at $s4 = 4($t1) = 4 + 0x1001 0004 = 0x1001 0008 and the value at this address is 0x5678. the value stored in $s2 = base address of array2 = 0x1001 0014 because array1 address ends in 0x1001 0013. the value stored in $s3 = address of val02 = 0x1001 0030 because the address on space ends with 0x1001 002f.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.