Assembly:

BEQZC rt, address # when rt andaddressarein range

nanoMIPS

Branch if Equal to Zero, Compact

Purpose:

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

Availability:

nanoMIPS

Format:

BEQZC[16]

100110

rt3

s[6:1]

s[7]

6

3

6

1

Operation:

rt = decode_gpr(rt3, 'gpr3')
offset = sign_extend(s, from_nbits=8)
address = effective_address(CPU.next_pc, offset)
if GPR[rt] == 0:
    CPU.next_pc = address

Exceptions:

None.