Assembly:

ANDI rt, rs, u

nanoMIPS

AND Immediate

Purpose:

AND Immediate. Compute logical AND of register $rs and immediate u, placing the resultin register $rt.

Availability:

nanoMIPS

Format:

ANDI[32]

100000

rt

rs

0010

u

6

5

5

4

12

ANDI[16]

111100

rt3

rs3

eu

6

3

3

4

rt = decode_gpr(rt3, 'gpr3')
rs = decode_gpr(rs3, 'gpr3')
u = (0x00ff if eu == 12 else
     0xffff if eu == 13 else
     eu)

Operation:

GPR[rt] = GPR[rs] & u

Exceptions:

None.