psth
Prefixed Store Halfword
Stores halfword using 34-bit offset.
Details
The Prefixed Store Halfword (pstb) instruction stores the lower half of a doubleword from register RS into memory at an effective address calculated using registers RA and RB. The effective address is determined by adding the contents of RA to RB, with special handling if RA is zero.
Programming Note
The psth instruction is used to store the lower half of a doubleword from register RS into memory. It's important to ensure that RA and RB are correctly set to calculate the effective address. If RA is zero, the base address is considered as zero. This instruction operates at user privilege level and can raise an exception if there's a memory access violation.
Example
Encoding
Operands
-
RS
Source -
D
Offset -
RA
Base -
R
PC-Rel