Assembler Directives - ORG


ORG - The origin directive tells the assembler where the next item is to be located in memory. The operand following ORG is the absolute value of the origin. A previously declared label may be used to specify the origin address.  Forward references are not permitted.

       ORG   $400     Origin for data

       ORG   *        Set origin to current code location

The ORG directive may be used to force Word and Long Word memory alignment:

       ORG   (*+1)&-2  Force Word alignment

       ORG   (*+3)&-4  Force Long Word alignment