lbzbrx

Load Byte Reversed from Byte Aligned Address Indexed

lbzbrx RT,RA,RB

Loads a byte from memory and reverses its order, placing it into a register.

Details

Loads a byte from memory at an indexed address and stores the byte value (zero-extended to 64 bits) into register RT. The byte value does not require reversal since a single byte has no byte order. This is an indexed form load with effective address (RA|0) + RB.

Pseudocode Operation

EA ← (RA|0) + RB
RT ← (0)56 || [EA][0:7]

Programming Note

These instructions have the effect of loading and storing data in the opposite byte ordering from that which would be used by other Load and Store instructions. In some implementations, the Load Byte-Reverse instructions may have greater latency than other Load instructions.

Example

lbzbrx r3, r4, r5

Encoding

Binary Layout
18
0
OPCODE
6
RT
10
RA
15
RB
20
MBZ
25
 
Format X-form
Opcode
Extension Base

Operands

  • RT
    Target General Purpose Register
  • RA
    Base General Purpose Register
  • RB
    Index General Purpose Register