[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

lbzx (Load Byte and Zero Indexed) Instruction

Purpose

Loads a byte of data from a specified location in memory into a general-purpose register and sets the remaining 24 bits to 0.

Syntax

lbzx RT,RA,RB

Description

The lbzx instruction loads a byte in storage addressed by the effective address (EA) into bits 24-31 of the target general-purpose register (GPR) RT and sets bits 0-23 of GPR RT to 0.

If RA is not 0, the EA is the sum of the contents of GPR RA and GPR RB. If RA is 0, then the EA is D.

The lbzx instruction has one syntax form and does not affect the Fixed-Point Exception Register.

Parameters

RT Specifies target general-purpose register where result of operation is stored.
RA Specifies source general-purpose register for EA calculation.
RB Specifies source general-purpose register for EA calculation.

Examples

The following code loads the value located at storage into GPR 6:

storage:  .byte 0x61
  .
  .
# Assume GPR 5 contains 0x0000 0000.
# Assume GPR 4 is the storage address.
lbzx 6,5,4
# GPR 6 now contains 0x0000 0061.

Related Information

Fixed-Point Processor.

Fixed-Point Load and Store Instructions.


[ Previous | Next | Contents | Home | Search ]