qa.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.
OFFSET
   Operator Summary  Summary  Example
──────────────────────────────────────────────────────────────────────────────
 
  Syntax:  OFFSET expression
 
  Returns offset address of expression (usually a variable). The value
  returned by the OFFSET operator is an immediate operand.
 
  If you use simplified segment directives, then the offset of an item
  in one of the near data segments (DATA, STACK, CONST) is calculated
  relative to the beginning of DGROUP, the group containing all these
  segments. If you give full segment definitions, the returned value is
  a memory operand equal to the number of bytes between the item and the
  beginning of the segment in which it is defined.
 
  expression   Any label, variable, or other direct memory operand.
 
   See Also:  : (segment-override)
                                    -♦-