Encoding:

ANDI32

110100

rt

rs

immediate

6

5

5

16

Format:

ANDI rt, rs, immediate

microMIPS

and immediate

Purpose:

and immediate

To do a bitwise logical AND with a constant

Description:

GPR[rt] = GPR[rs] and zero_extend(immediate)

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

Restrictions:

None

Operation:

GPR[rt] = GPR[rs] and zero_extend(immediate)

Exceptions:

None