Arm VERSION 1.2 Bedienungsanleitung Seite 234

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 360
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 233
Thumb Instruction Reference
5-40 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
5.6.1 ADR Thumb pseudo-instruction
The
ADR
pseudo-instruction loads a program-relative address into a register.
Syntax
ADR register, expr
where:
register
is the register to load.
expr
is a program-relative expression. The offset must be positive and less than
1KB.
expr
must be defined locally, it cannot be imported.
Usage
In Thumb state,
ADR
can generate word-aligned addresses only. Use the
ALIGN
directive
to ensure that
expr
is aligned (see ALIGN on page 7-50).
expr
must evaluate to an address in the same code section as the
ADR
pseudo-instruction.
There is no guarantee that the address will be within range after linking if it resides in
another ELF section.
Example
ADR r4,txampl ; => ADD r4,pc,#nn
; code
ALIGN
txampl DCW 0,0,0,0
Seitenansicht 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 359 360

Kommentare zu diesen Handbüchern

Keine Kommentare