Symbols

A symbol is a group of characters that represents a value, such as an address, numeric constant, string constant, or character constant. There is no length limit to the symbols.

The syntax of a symbol is:

  symbol ::= label | equate

In general, the symbols have file-wide scope. This means:

  1. You can access the symbol from anywhere in the file that includes the symbol definition.
  2. You cannot access the symbol from another file.

However, it is possible for symbols to have a different scope, as the Local Labels subsection explains. In this topic: