Keil Logo

SET Assembler Statement

Arguments
symbol SET expression
Description

The SET statement creates a new symbol named symbol with the value of the expression. Symbols created with SET may be redefined. The expression may be a register name or a simple relocatable expression with no forward references.

Symbols defined with SET may be used anywhere in operands, addresses, or expressions. Symbols defined as registers may be used anywhere a register is allowed.

Symbols defined with SET may not be made PUBLIC.

See Also

EQU, LIT

Example
VAL     SET     45         ; Simple definition
REG1    SET     R1         ; Public definition

VAL     SET     VAL+1      ; Redefinition

VAR     SET     PUTCHAR    ; Relocatable symbol definition

VAL     SET     VAL+1      ; Redefinition
  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.