Skip to content

SETRET

32-bit Base **Group:** PC-Relative  |  Ch 16   BRU — Branch and Compare  |  **Length:** 32  |  **Decode:**

Assembly Syntax

  • setret uimm, ->Ra

Encoding

SETRET encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

Materializes a return address (ra) using a PC-relative offset. Used in call headers.

Pseudocode (informative)

ra = PC + ZeroExtend(imm << 1);

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
setret uimm, ->Ra 32
← [PC-Relative](../groups/pc_relative.md)    [Index](../index.md)    [All instructions](index.md) →