Assembly:

BC address

nanoMIPS

Branch, Compact

Purpose:

Branch, Compact. Unconditional PC relative branch to address.

Availability:

nanoMIPS

Format:

BC[32]

001010

0

s[24:1]

s[25]

6

1

24

1

offset = sign_extend(s, from_nbits=26)
address = effective_address(CPU.next_pc, offset)

BC[16]

000110

s[9:1]

s[10]

6

9

1

offset = sign_extend(s, from_nbits=11)
address = effective_address(CPU.next_pc, offset)

Operation:

CPU.next_pc = address

Exceptions:

None.