Arm VERSION 1.2 Manual de usuario Pagina 234

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 359 360

Comentarios a estos manuales

Sin comentarios