Assembly:

BNEIC rt, u, address

nanoMIPS

Branch if Not Equal to Immediate, Compact

Purpose:

Branch if Not Equal to Immediate, Compact. PC relative branch to address if register $rt isnot equal to immediate u.

Availability:

nanoMIPS

Format:

110010

rt

100

u

s[10:1]

s[11]

6

5

3

7

10

1

Operation:

offset = sign_extend(s, from_nbits=12)
address = effective_address(CPU.next_pc, offset)
if GPR[rt] != u:
    CPU.next_pc = address

Exceptions:

None.