EXTEND 11110 |
sa4:0 |
0 000000 |
SHIFT 00110 |
rx |
ry |
0 000 |
SRL 10 |
5 |
5 |
6 |
5 |
3 |
3 |
3 |
2 |
SRL rx, ry, sa |
MIPS16e |
Shift Word Right Logical (Extended) |
Shift Word Right Logical (Extended)
To execute a logical right-shift of a word by a fi ed number of bits-0 to 31 bits.
GPR[rx] = GPR[ry] >> sa (logical)
The 32-bit contents of GPR ry are shifted right, and zeros are inserted into the emptied high-order bits. The 5-bit sa field specifies the shift amount. The result is placed into G
rx.
None
s = sa temp = 0s || GPR[Xlat(ry)]31..s GPR[Xlat(rx)] = temp
None