Directives Reference

7.3.4SPACE

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 page 7-25 for more information.

Use the ALIGN directive to align any code following a SPACE directive. See ALIGN on page 7-50 for more information.

See also:

DCB on page 7-18

DCD and DCDU on page 7-19

DCDO on page 7-20

DCW and DCWU on page 7-25.

Example

AREA

MyData,

DATA, READWRITE

data1 SPACE

255

; defines 255 bytes of zeroed store

ARM DUI 0068B

Copyright © 2000, 2001 ARM Limited. All rights reserved.

7-17

Page 299
Image 299
ARM VERSION 1.2 manual Space, Expressions on