Assembly:

BNEZC rt, address

nanoMIPS

Branch if Not Equal to Zero, Compact

Purpose:

Branch if Not Equal to Zero, Compact. PC relative branch to address if register $rt is notequal to zero.

Availability:

nanoMIPS

Format:

BNEZC[16]

101110

rt3

s[6:1]

s[7]

6

3

6

1

rt = decode_gpr(rt3, 'gpr3')
offset = sign_extend(s, from_nbits=8)

Operation:

address = effective_address(CPU.next_pc, offset)
if GPR[rt] != 0:
    CPU.next_pc = address

Exceptions:

None.