Complex relocatable expressions

Complex relocatable expressions, unlike relocatable expressions, can contain:
  • Two or more unpaired relocatable terms
  • An unpaired relocatable term preceded by a negative sign
Using the same symbols, here are examples of complex relocatable expressions:
    W+X                 *+*
    X-Y                 A-W+Y

Complex relocatable expressions are used in A-type and Y-type address constants to generate address constant values. For more details, refer to Complex relocatable expressions, and Address constants—A and Y. V-type and S-type constants cannot contain complex relocatable expressions. You can assign a complex relocatable value to a symbol using the EQU instruction, as described in EQU instruction.