Keil Logo

SET Assembler Directive

Abbreviation

None.

Arguments

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

Default

None.

µVision

Options — A51 — 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 00001h. 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
A51 SAMPLE.ASM SET(DEBUG_INFO=3, TEST)

$SET (ITERATION=4, DEBUG_VAR)
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.