Assembly:

BALRSC rt, rs

nanoMIPS

Branch And Link Register Scaled, Compact

Purpose:

Branch And Link Register Scaled, Compact.

Unconditional branch to address NextPC+

2*$rs, placing return address in register $rt.

Availability:

nanoMIPS

Format:

010010

rt!=0

rt

rs

1000

x

6

5

5

4

12

Operation:

address = effective_address(CPU.next_pc, offset=GPR[rs]<<1)
GPR[rt] = CPU.next_pc
CPU.next_pc = address

Exceptions:

None.