Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All r ights reserved. 7-17
7.3.4 SPACE
The
SPACE
directive reserves a zeroed block of memory.
%
is a synonym for
SPACE
.
Syntax
{label} SPACE expr
where:
expr
evaluates to the number of zeroed bytes to reserve (see Numeric
expressions on page 3-20).
Usage
You must use a
DATA
directive if you use
SPACE
to define labeled data within Thumb code.
See DATA on page7-25 for more information.
Use the
ALIGN
directive to align any code following a
SPACE
directive. See ALIGN on
page7-50 for more information.
See also:
DCB on page7-18
DCD and DCDU on page 7-19
DCDO on page7-20
DCW and DCWU on page7-25.
Example
AREA MyData, DATA, READWRITE
data1 SPACE 255 ; defines 255 bytes of zeroed store