EQU directive gives a symbolic name to a
numeric constant, a register-relative value or a PC-relative value.
a synonym for
is the symbolic name to assign to the value.
is a register-relative address, a PC-relative address, an absolute address, or a 32-bit integer constant.
can be any one of:
You can use
is an absolute address. If
is exported, the
entry in the symbol table in the object file will be marked as
DATA, according to
. This can be used by the linker.
abc EQU 2 ; assigns the value 2 to the symbol abc. xyz EQU label+8 ; assigns the address (label+8) to the ; symbol xyz. fiq EQU 0x1C, CODE32 ; assigns the absolute address 0x1C to ; the symbol fiq, and marks it as code