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