Assembly:

BALC address

nanoMIPS

Branch And Link, Compact

Purpose:

Branch And Link, Compact. Unconditional PC relative branch to address, placing returnaddress in register $31.

Availability:

nanoMIPS

Format:

BALC[32]

001010

1

s[24:1]

s[25]

6

1

24

1

offset = sign_extend(s, from_nbits=26)

BALC[16]

001110

s[9:1]

s[10]

6

9

1

offset = sign_extend(s, from_nbits=11)

Operation:

address = effective_address(CPU.next_pc, offset)
GPR[31] = CPU.next_pc
CPU.next_pc = address

Exceptions:

None.