plbz
Prefixed Load Byte and Zero
plbz RT, D34(RA), R
Loads a byte and zero-extends it, using a 34-bit offset.
Encoding
Binary Layout
1
0:5
2
6:7
R
8
0
9:13
D0
14:31
35
32:37
RT
38:42
RA
43:47
D1
48:63
Operands
-
RT
Target Register -
D34
34-bit Displacement -
RA
Base Register
Example
plbz r3, 0x12345678(0), 0
// Load byte from absolute address.
Related
More in Prefixed
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Loads a single byte from memory at the address formed by adding the 34-bit signed displacement D34 to the base register RA, zero-extends it to 64 bits, and stores the result in RT. This is a prefixed instruction using the MLS:D-form encoding with a 34-bit effective address offset. No condition flags are affected.
Operation
EA ← (RA) + D34
RT ← (0)56 || ([EA])
Programming Note
The plbz instruction is used to load a single byte from memory and zero-extend it to fill the entire register. Ensure that the effective address (EA) is properly aligned for optimal performance, although misalignment does not cause an exception. This instruction operates at user privilege level.