## ALP Programming Guide and Reference

[prev][next][parent][TOC]

### EQU Directive (Assign Text to a Symbolic Constant)

The EQU directive assigns the contents of a text literal to Name.

Syntax

    Name   EQU   Text - Literal

Remarks

The value of the Text-Literal is assigned to the Name entry. In normal contexts, subsequent references to Name will cause the preprocessor to replace Name with the value specified by the Text-Literal entry. This is a simple text substitution operation.

The Name entry is a globally-scoped Identifier that is converted to a Text- EquateName. The Name cannot have been previously defined as a different Identifier-Type. However, the Name entry can be redefined as many times as desired with different values for the Text-Literal entry.

See also EQU and =.

Example

    A      EQU     < BP   + >    ; explicit   text   literal ,   A   is   a   text   equate
    A      EQU     < 3 >       ; redefinition   of   A   with   different   value