Sll $dest, $src1, $src2

Shift the contents of a register left by a variable amount.

Format

This is an RR format instrucion.
31 - 26
25 - 21
20 - 16
15 - 11
10 - 0
011000
dest
src1
src2
00000000000

Functional Description

The sll instruction performs a left shift of the contents of register src1 and stores the shifted value in register dest. The shift amount is taken from the contents of register src2 & 0x1f. The value 0 is shifted in from the right to replace lost bits.

dest = src1 << (src2 & 0x1f);

Side Effects

None

Processor Mode

This is a user-level instruction.


Last modified: Fri Feb 23 02:56:04 CST 2001