The EQU statement creates a new symbol named symbol
with the value of the expression. Symbols created with
EQU may not be redefined. The expression may be a
register name or a
simple relocatable expression with no forward references.
Symbols defined with EQU may be used anywhere in operands,
addresses, or expressions. Symbols defined as registers may be used
anywhere a register is allowed.
If a symbol defined with EQU is made GLOBAL orPUBLIC, the
expression must evaluate to a constant. Exported symbols
include a name and a value but may not include fix-up methods.
VAL EQU 45+3 ; Simple definition
PUBLIC VAL ; Public definition
REG1 EQU R1 ; Register symbol definition
VAR EQU PUTCHAR ; Relocatable symbol definition
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.