In: Computer Science
For the registers values shown below, what are the values of $t2 & $t3, for the following sequence of instructions?
$s0=0xFFFF0011
$s1=0x00002136
sll $t2, $s0, 2
and $t3, $t2, $s1
Greetings!!
Register t2 contains FFFC0044
Explanation:
Given: 1111 1111 1111 1111 0000 0000 0001 0001
After 1st shift:1111 1111 1111 1110 0000 0000 0010 0010
After 2nd shift:1111 1111 1111 1100 0000 0000 0100 0100 = FFFC0044
Register t3 contains 00000004
Explanation:
Given:
0000 0000 0000 0000 0010 0001 0011 0110 AND
1111 1111 1111 1100 0000 0000 0100 0100
----------------------------------------------------------
0000 0000 0000 0000 0000 0000 0000 0100 = 00000004
Output screenshot:
Hope this helps