Answer is Hexadecimal Considering the following MIPS assembl

Answer is Hexadecimal

Considering the following MIPS assembly code snippet: mydata: .word 0 times 11121314, 0 times 05060708, 0 times 191A1B1C, 0 times 0D0E0F10, 0 times 01, 0 times 02 li $t1, 5 sll $t1, $t1, 1 lb $s0, mydata($t1) Assuming that the Little Endian scheme is used, what is the value of register $s0 in hexadecimal after the instruction lb was executed? Ox.

Solution

li $t1,5    => t1=5(0101)

sll $t1, $t1,1 =>t1=1010

lb $s0, mydata($t1)    =>s0=0x0D0E0F10 i.e the 10th value ydata is pointing at.

Answer is Hexadecimal Considering the following MIPS assembly code snippet: mydata: .word 0 times 11121314, 0 times 05060708, 0 times 191A1B1C, 0 times 0D0E0F10

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site