Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Specify Assembly Start Address
 ◄Example►                                   ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   ORG expression
 
            ORG $+expression
 
  See also: ALIGN, EVEN, SEGMENT, STRUCT, Data-Declaration Directives
 
  Description:
 
     Sets the location counter to a specific address, given by <expression>.
     The assembler implements this directive by adjusting the
     location counter.
 
     ORG $+expression causes the assembler add <expression> bytes to
     the location counter. The <expression> must evaluate to a constant
     without forward references.
 
     Inside a STRUCT block, the <expression> parameter is relative to
     the beginning of the structure. This can be used to create
     structure elements that refer to bytes lower in memory than the
     beginning of the structure.
                                    -♦-