ANDI rt, rs, u |
nanoMIPS |
AND Immediate |
AND Immediate. Compute logical AND of register $rs and immediate u, placing the resultin register $rt.
nanoMIPS
100000 |
rt |
rs |
0010 |
u |
6 |
5 |
5 |
4 |
12 |
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)
GPR[rt] = GPR[rs] & u
None.