Arm VERSION 1.2 Manual de usuario Pagina 299

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 298
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights 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 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
Vista de pagina 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 359 360

Comentarios a estos manuales

Sin comentarios