.org

Name

.org --  sets the program counter to a new value

Syntax

.org expression

Description

The .org directive is used to set the program counter to a new value. Any bytes skipped have an indeterminate value.

The expression must not contain any forward references and must be either absolute, or relocatable in the same section as the current program counter. The optional label is set to the value of the new program counter.

A .org expression is equivalent to a .= expression.

In an absolute section (see .sect directive), the program counter may not be set to a value lower than that specified on the .sect directive.

Example

		.org 0100	; section program counter = 0100