Assembly:

ROTR rt, rs, shift

nanoMIPS

Rotate Right

Purpose:

Rotate Right. Rotate the word value in register $rs by shift value shift, and place the resultin register $rt.

Availability:

nanoMIPS

Format:

100000

rt

rs

1100

x

0110

shift

6

5

5

4

3

4

5

Operation:

tmp = GPR[rs][31:0] @ GPR[rs][31:0]
result = tmp >> shift
GPR[rt] = sign_extend(result, from_nbits=32)

Exceptions:

None.