Everything

.equ


Defines a symbol.

[Syntax]

Symbol field

Mnemonic field

Operand field

Comment field

symbol
.equ
absolute-expression
[; comment]

[Function]

Defines a symbol having a symbol name specified by the symbol field and a absolute-expression value specified by the operand field.

[Use]

-

You can use this directive to define symbols for numerical data that can be used instead of the actual numbers in the operands of machine-language instructions and directives in source code.

[Description]

-

Incorrect formats for an operand will cause processing to end.

-

The .set directive may be described anywhere in a source program.

-

Symbols that have already been defined by using .equ cannot be redefined.

-

The symbol generated by the .equ directive can be externally defined by the .public directive.