5.8.33. EQU or * directive

The EQU directive gives a symbolic name to a numeric constant. * is a synonym for EQU.

Syntax

The syntax of EQU is:

name EQU expression

where:

name

is the symbolic name to assign to the value.

expression

is a fixed, register-relative, or program-relativevalue.

Usage

Use EQU to define constants. This is similar to the use of #define to define a constant in C.

See also:

Example

num 		EQU 		2		; assigns the value 2 to the symbol num.
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential