SRLV rd, rs, rt |
nanoMIPS |
Shift Right Logical Variable |
Shift Right Logical Variable. Right shift word value in register $rs by shift amount in register$rt, filling the emptied bits with zeros. Place the result in register $rd.
nanoMIPS
001000 |
rt |
rs |
rd |
x |
0001010 |
000 |
6 |
5 |
5 |
5 |
1 |
7 |
3 |
shift = GPR[rt] & 0x1f result = zero_extend(GPR[rs], from_nbits=32) >> shift GPR[rd] = sign_extend(result, from_nbits=32)
None.