Skip to content

PC-Relative

Ch 16   BRU — Branch and Compare  |  **Group:** PC-Relative  |  **Forms:** 4  |  **Unique mnemonics:** 4

PC-relative address computation instructions.

Instructions

Mnemonic Assembly Length Decode Description
ADDTPC addtpc simm, ->{t, u, Rd} 32 PC-relative addition. Adds an immediate to the current PC/TPC and writes the result.
HL.ADDTPC hl.addtpc imm, ->{t, u, Rd} 48 [48-bit HL.] Instruction from the PC-Relative group.
HL.SETRET hl.setret imm, ->Ra 48 [48-bit HL.] Instruction from the PC-Relative group.
SETRET setret uimm, ->Ra 32 Materializes a return address (ra) using a PC-relative offset. Used in call headers.

See Also