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

.org Pseudo-op

Purpose

Sets the value of the current location counter.

Syntax

.org Expression

Description

The .org pseudo-op sets the value of the current location counter to Expression. This pseudo-op can also decrement a location counter. The assembler is control section (csect) oriented; therefore, absolute expressions or expressions that cause the location counter to go outside of the current csect are not allowed.

Parameters

Expression Represents the value of the current location counter.

Examples

The following example illustrates the use of the .org pseudo-op:

# Assume assembler location counter is 0x114.
.org $+100
#Skip 100 decimal byte (0x64 bytes).
.
.
# Assembler location counter is now 0x178.

Related Information

Pseudo-ops Overview.

The .space pseudo-op.


[ Previous | Next | Contents | Home | Search ]