Directives Reference
7-8 Copyright © 2000, 20 01 ARM Limited. All rights reserved. ARM DUI 0068B
7.2.4 RLIST
The
RLIST
(register list) directive gives a name to a set of general-purpose registers.
Syntax
name RLIST {list-of-registers}
where:
name
is the name to be given to the set of registers.
name
cannot be the same as
any of the predefined names listed in Predefined register and coprocessor
names on page3-9.
list-of-registers
is a comma-delimited list of register names and/or register ranges. The
register list must be enclosed in braces.
Usage
Use
RLIST
to give a name to a set of registers to be transferred by the
LDM
or
STM
instructions.
LDM
and
STM
always put the lowest physical register numbers at the lowest address in
memory, regardless of the order they are supplied to the
LDM
or
STM
instruction. If you
have defined your own symbolic register names it can be less apparent that a register list
is not in increasing register order.
Use the
-checkreglist
assembler option to ensure that the registers in a register list are
supplied in increasing register order. If registers are not supplied in increasing register
order, a warning is issued.
Example
Context RLIST {r0-r6,r8,r10-r12,r15}