lbarx
Load Byte And Reserve Indexed
lbarx RT,RA,RB
Loads a byte from memory and reserves the location for exclusive access.
Details
The lbarx instruction loads a byte from memory into a register and reserves the location for exclusive access. The effective address is computed as the sum of the contents of registers RA and RB, with RA being zero-extended to 64 bits if it is not already. The reservation is associated with the real address computed from the effective address.
Pseudocode Operation
Programming Note
lbarx serves as both a basic and an extended mnemonic. The Assembler will recognize a lbarx mnemonic with four operands as the basic form, and a lbarx mnemonic with three operands as the extended form. In the extended form the EH operand is omitted and assumed to be 0.
Example
Encoding
Operands
-
RT
Target -
RA
Base -
RB
Index -
EH
Hint for subsequent store operation