Arm VERSION 1.2 Manuel d'utilisateur Page 234

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 360
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 359 360

Commentaires sur ces manuels

Pas de commentaire