Encoding:

EXTEND

11110

Imm[10:5]

Imm[15:11]

LI

01101

rx

sel = 3

Imm[4:0]

5

5

5

5

3

3

3

Format:

ANDI rx, immediate

MIPS16e2

AND Immediate Extended

Purpose:

AND Immediate Extended

To do a bitwise logical AND with a constant.

Description:

GPR[rx] = GPR[rx] AND zero_extend(immediate)

The 16-bit immediate is zero-extended to the left and combined with the contents of GPR rx in a bitwise logical AND operation. The result is placed back into GPR rx.

Restrictions:

Unpredictable prior to MIPS16e2.

Operation:

GPR[XLat[rx]] = GPR[XLat[rx]] and zero_extend(immediate)

Exceptions:

None