C.J

Compressed Jump

C.J offset

Unconditional PC-relative jump.

Encoding

Binary Layout
101
15:13
c_imm12
12:2
01
1:0
 
Format CJ
Opcode 0xA001
Extension C

Operands

  • offset
    Target

Example

C.J label

// Jump to label.

Related

More in C

Description

Performs an unconditional PC-relative jump within an 11-bit signed offset range.

Operation

PC += sext(offset);