Please take a look at these two pieces of pseudo-assembly code:
1)
li $t0,53
sll $t1,$t0,2
srl $t2,$t0,2
sra $t3,$t0,2
print $t1
print $t2
print $t3
2)
li $t0,-53
sll $t1,$t0,2
srl $t2,$t0,2
sra $t3,$t0,2
print $t1
print $t2
print $t3
in the first case the output is:
212
13
13
in the latter is:
-212
107374...
-14
But shouldn't : sra (-53) = - (srl 53) ?