Assembly:

BGEC rs, rt, address

nanoMIPS

Branch if Greater than or Equal, Compact

Purpose:

Branch if Greater than or Equal, Compact. PC relative branch to address if register $rs isgreater than or equal to register $rt.

Availability:

nanoMIPS

Format:

100010

rt

rs

10

s[13:1]

s[14]

6

5

5

2

13

1

Operation:

offset = sign_extend(s, from_nbits=15)
address = effective_address(CPU.next_pc, offset)
if GPR[rs] >= GPR[rt]:
    CPU.next_pc = address

Exceptions:

None.