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

Relative Immediate Addressing

Relative immediate addresses are specified as immediate data within the object code and are calculated relative to the current instruction location. All the instructions that use relative immediate addressing are branch instructions. These instructions have immediate data that is the displacement in fullwords from the current instruction location. At execution, the immediate data is sign extended, logically shifted to the left two bits, and added to the address of the branch instruction to calculate the branch target address. The immediate data must be a relocatable expression or an external expression.

Related Information

Absolute addressing.

Absolute immediate addressing.

Explicit-Based addressing.

Implicit-Based addressing.

Location Counter.

Branch Processor.

The bcctr or bcc (Branch Conditional to Count Register) instruction, bclr or bcr (Branch Conditional Link Register) instruction, b (Branch) Instruction, bc (Branch Conditional) instruction.

The .using pseudo-op, .drop pseudo-op.

[ Previous | Next | Contents | Home | Search ]