symbol SET expression
symbol SET register
symbol is the name of the symbol to define. The expression or register specified in the SET statement replaces each occurrence of the symbol that is used in your assembly program.
expression is a numeric expression which contains no forward references.
register is one of the following register names: A, R0, R1, R2, R3, R4, R5, R6, or R7.
Symbols defined with the SET directive may be used anywhere in operands, expressions, or addresses. Symbols that are defined as a register name can be used anywhere a register is allowed. The A51 assembler replaces each occurrence of the defined symbol in your assembly program with the specified numeric value or register symbol.
Symbols defined with the SET directive may be changed by subsequent SET statements.
VALUE SET 100
VALUE SET VALUE / 2
COUNTER SET R1
TEMP SET COUNTER
TEMP SET VALUE * VALUE