paddi
Prefixed Add Immediate
paddi RT, RA, SI, R
Details
The paddi instruction adds an immediate value to a register and stores the result in another register. It is used for loading an immediate value or an address into a target register.
Pseudocode Operation
RT ← RA + SI
Programming Note
The paddi instruction is commonly used for loading addresses or small immediate values into registers. Be cautious with alignment; ensure that the immediate value does not cause overflow, which could lead to unexpected results. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.
Example
paddi r3, r4, 16, 0
Encoding
Binary Layout
1
0
2
6
R
8
0
9
D0
14
14
32
RT
38
RA
43
D1
48
Operands
-
RT
Target -
RA
Src -
SI
Imm -
R
PC-Rel