lbepx

Load Byte by External Process ID Indexed

lbepx RT, RA, RB

Loads a byte using the External PID (for OS kernels accessing user memory).

Formerly listed on this site as lbzepx; the old address leads here. Renamed to lbepx, the name binutils and Power ISA 2.07B (Book III-E) give the instruction; lbzepx is in neither.

Encoding

Binary Layout
31
0:5
RT
6:10
RA
11:15
RB
16:20
95
21:30
/
31
 
Format X-form
Opcode 0x7C0000BE
Extension Embedded

Operands

  • RT
    Target
  • RA
    Base
  • RB
    Index

Example

lbepx r3, r4, r5

Related

More in Embedded

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Loads a byte from memory using the External Process ID (EPID), which allows privileged code to access memory belonging to an external process. The effective address is computed from RA and RB, and the loaded byte is zero-extended into the target GPR. This is an embedded/privileged instruction used by operating system kernels.

Operation

EA ← (RA = 0 ? 0 : GPR[RA]) + GPR[RB]
GPR[RT] ← (0)56 || [EA]8