4.9.16 Equ Directive
EQU pseudo-op defines a symbol and equates its value
to an expression. For example:thomas EQU 123hThe identifier thomas will be given the value 123h.
EQU is legal only when the symbol has not previously been defined. See
Set Directive for
redefinition of values.
This directive does not reserve memory for the symbol specified.
Use the DS directive to reserve data memory (see Ds Directive). An
EQU performs a similar function to the preprocessor’s
#define directive (see Preprocessor Directives).
Since EQU directives do not contribute to the output, they are processed
separately to other instructions and directives. Thus, the program location counter cannot
be used in EQU operand expressions.
