ROTR rt, rs, shift |
nanoMIPS |
Rotate Right |
Rotate Right. Rotate the word value in register $rs by shift value shift, and place the resultin register $rt.
nanoMIPS
100000 |
rt |
rs |
1100 |
x |
0110 |
shift |
6 |
5 |
5 |
4 |
3 |
4 |
5 |
tmp = GPR[rs][31:0] @ GPR[rs][31:0] result = tmp >> shift GPR[rt] = sign_extend(result, from_nbits=32)
None.