5.8.4. % directive

The % directive reserves a zeroed block of memory.

Syntax

The syntax of % is:

{label} % numeric-expression

where:

numeric-expression

evaluates to the number of zeroed bytes to reserve.

Usage

You must use a DATA directive if you use % to define labeled data within Thumb code. Refer to DATA directive for more information.

Use the ALIGN directive to align any code following a % directive. Refer to ALIGN directive for more information.

See also:

Example

		AREA 		MyData, DATA, READWRITE
data1		%		255			; defines 255 bytes of zeroed store
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential