lui $dest, $src1, imm

Place a 16-bit immediate into the upper half of a register.

Format

This is an RI format instrucion.
31 - 26 25 - 21 20 - 16
15 - 0
110010
dest
src1
Immediate

Functional Description

The lui instruction takes the value stored in register src1, replaces the uppermost 16-bits of it with the immediate field, and places the new value in register dest.

dest = (src1 & 0xffff) | (imm << 16);

Side Effects

None.

Processor Mode

This is a user-level instruction.


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