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 GLOBAL orPUBLIC.
Note
Do not confuse the SET statement with the SET assembler
directive.
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
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.