go to previous page   go to home page   hear noise
li  $t2,-2
li  $t1,4
ror $t0,$t1,$t2

What does $t0 hold after the sequence has executed?

Answer:

$t1 starts out with this bit pattern:

0000 0000 0000 0000 0000 0000 0000 0100

Because $t2 holds a negative two, the bits are rotated two positions left:

0000 0000 0000 0000 0000 0000 0001 0000

End of Chapter

You have reached the end of this chapter. Unless your head is rotating, click on a subject to go to where it was discussed.


go to previous page   go to home page