Assembly:

BEQIC rt, u, address

nanoMIPS

Branch if Equal to Immediate, Compact

Purpose:

Branch if Equal to Immediate, Compact. PC relative branch to address if value of register$rt is equal to immediate value u.

Availability:

nanoMIPS

Format:

110010

rt

000

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.