plbz

Prefixed Load Byte and Zero

plbz RT, D34(RA), R

Loads a byte and zero-extends it, using a 34-bit offset.

Details

The plbz instruction is a prefixed version of the Load Byte and Zero (lbz) instruction. It loads a byte from memory into a register, zero-extending it to the full width of the register.

Pseudocode Operation

RT <- zext(MEM(EA, 1))

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.

Example

plbz r3, 0x12345678(0), 0

Encoding

Binary Layout
1
0
2
6
R
8
0
9
D0
14
35
32
RT
38
RA
43
D1
48
 
Format MLS:D-form
Opcode 0x06000000
Extension Prefixed

Operands

  • RT
    Target Register
  • D34
    34-bit Displacement
  • RA
    Base Register