J

Jump

J offset

Unconditionally jumps to a target offset.

Encoding

Binary Layout
jimm20
31:12
000001101111
11:0
 
Format J-Type
Opcode 0x0000006F
Extension Pseudo

Operands

  • offset
    Jump Target

Example

J label

// Unconditional jump (discarding return address).

Related

More in Pseudo

Description

J performs an unconditional jump to a PC-relative offset. It is a pseudoinstruction for JAL x0, offset.

Operation

PC += sext(offset);