BNEC rs, rt, address |
nanoMIPS, availability varies by format. |
Branch Not Equal, Compact |
Branch Not Equal, Compact. PC relative branch to address if register $rs is not equal toregister $rt.
nanoMIPS, availability varies by format.
|
101010 |
rt |
rs |
00 |
s[13:1] |
s[14] |
|
6 |
5 |
5 |
2 |
13 |
1 |
offset = sign_extend(s, from_nbits=15)
|
110110 |
rs3>=rt3 && u!=0 rt3 |
rs3 |
u[4:1] |
|
6 |
3 |
3 |
4 |
if C0.Config5.NMS == 1:
raise exception('RI')
rs = decode_gpr(rs3, 'gpr3')
rt = decode_gpr(rt3, 'gpr3')
offset = u
address = effective_address(CPU.next_pc, offset)
if GPR[rs] != GPR[rt]:
CPU.next_pc = address
Reserved Instruction for BNEC[16] format on NMS cores.