pstw
Prefixed Store Word
Stores word using 34-bit offset.
Details
The Prefixed Store Word instruction (pstw) stores a word from a source register to memory at an effective address calculated based on the base address in another register and an offset. The offset can be derived from either the instruction itself or the current instruction address, depending on the prefix field.
Pseudocode Operation
Programming Note
The pstw instruction is used to store a word from a source register into memory. It supports different addressing modes based on the prefix field and privilege level. Ensure that the base address in RA is properly aligned for optimal performance, and be cautious of potential exceptions if the EA calculation results in an invalid address.
Example
Encoding
Operands
-
RS
Source -
D
Offset -
RA
Base -
R
PC-Rel