Keil Logo Arm Logo

A166 User's Guide

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 GLOBAL or PUBLIC.

Note

  • Do not confuse the SET statement with the SET assembler directive.
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

Keil logo

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.