A251 User's Guide

SET Assembler Directive

Abbreviation

None.

Arguments

SET (symbol 〚= number〛 〚, symbol 〚= number〛 ...〛)

Default

None.

µVision

Options — A251 — Set.

Description

The SET directive assigns numeric values (number) to the specified symbols. Any symbols that do not include an explicit number assignment are assigned the value 0FFFFh. The symbols defined with SET may be used only with the IF and ELSEIF conditional assembly directives. They may not be used directly in assembly instructions.

Note

  • Symbols defined with the SET directive may be used only with the IF and ELSEIF directives. They may not be used with the IF and ELSEIF statements.
See Also

DEFINE, ELSE, ELSEIF, ENDIF, IF, RESET

Example
A251 SAMPLE.ASM SET(DEBUG_INFO=3, TEST)

$SET (ITERATION=4, DEBUG_VAR)