RR 11101 |
rx |
ry |
SRLV 00110 |
5 |
3 |
3 |
5 |
SRLV ry, rx |
MIPS16e |
Shift Word Right Logical Variable |
Shift Word Right Logical Variable
To execute a logical right-shift of a word by a variable number of bits.
GPR[ry] = GPR[ry] >> GPR[rx] (logical)
The 32-bit contents of GPR ry are shifted right, and zeros are inserted into the emptied high-order bits;the word result is placed back in GPR ry. The 5 low-order bits of GPR rx specify the shift amount.
None
s = GPR[Xlat(rx)]4..0 temp = 0s || GPR[Xlat(ry)]31..s GPR[Xlat(ry)] = temp
None