In my method one, I have the number that I want to shift by stored inside $a0 (e.g. 5 bits), and I want to shift $t9 by 5 bits, but I\'m running into a bit of trouble. Does anyo
To shift left by a variable amount, use sllv:
sllv
sllv $t9, $t9, $a0
sll only takes an immediate shift amount. There is no need for sw or $t8.
sll
sw
$t8