Arm VERSION 1.2 Bedienungsanleitung Seite 307

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 360
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 306
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 7-25
7.3.12 DCW and DCWU
The
DCW
directive allocates one or more halfwords of memory, aligned on 2-byte
boundaries, and defines the initial runtime contents of the memory.
DCWU
is the same, except that the memory alignment is arbitrary.
Syntax
{label} DCW expr{,expr}...
where:
expr
is a numeric expression that evaluates to an integer in the range 32768
to 65535 (see Numeric expressions on page 3-20).
Usage
DCW
inserts a byte of padding before the first defined halfword if necessary to achieve
2-byte alignment.
Use
DCWU
if you do not require alignment.
See also:
DCB on page 7-18
DCD and DCDU on page 7-19
DCQ and DCQU on page 7-24
SPACE on page 7-17.
Example
data DCW -225,2*number ; number must already be defined
DCWU number+4
7.3.13 DATA
The
DATA
directive is no longer needed. It is ignored by the assembler.
Seitenansicht 306
1 2 ... 302 303 304 305 306 307 308 309 310 311 312 ... 359 360

Kommentare zu diesen Handbüchern

Keine Kommentare