.org pseudo-op
Purpose
Sets the value of the current location counter.
Syntax
Item | Description |
---|---|
.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
Item | Description |
---|---|
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.