pla
Prefixed Load Address (Pseudo)
pla RT, label
Pseudo-instruction for paddi with R=1. Loads the address of a label.
Details
The pla instruction is a pseudo-instruction that loads an address into a target register. It is equivalent to the addi instruction with a zero immediate value and a shift of zero.
Pseudocode Operation
RT <- PC + offset(label)
Programming Note
The pla instruction is used to load the address of a label into a register, effectively calculating the absolute address of the target. This is useful for setting up pointers or addresses dynamically. Ensure that the label is correctly defined and accessible in your code. The instruction operates at the same privilege level as the current execution context.
Example
pla r3, my_var
Encoding
Binary Layout
1
0
2
6
R
8
0
9
D0
14
14
32
RT
38
0
43
D1
48
Operands
-
RT
Target Register -
label
Symbol Name