Arm VERSION 1.2 Manual de usuario Pagina 202

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 201
Thumb Instruction Reference
5-8 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
Address alignment for word and halfword transfers
The address must be divisible by 4 for word transfers, and by 2 for halfword transfers.
If your system has a system coprocessor (cp15), you can enable alignment checking.
Non-aligned transfers cause an alignment exception if alignment checking is enabled.
If your system does not have a system coprocessor (cp15), or alignment checking is
disabled:
A non-aligned load corrupts
Rd
.
A non-aligned save corrupts memory. The corrupted location in memory is the
halfword at [address AND NOT 0x1] for halfword saves, and the word at [address
AND NOT b11] for word saves.
Architectures
These instructions are available in all T variants of the ARM architecture.
Examples
LDR r2,[r1,r5]
LDRSH r0,[r0,r6]
STRB r1,[r7,r0]
Incorrect examples
LDR r13,[r5,r3] ; high registers not allowed
STRSH r7,[r3,r1] ; no signed store instruction
Vista de pagina 201
1 2 ... 197 198 199 200 201 202 203 204 205 206 207 ... 359 360

Comentarios a estos manuales

Sin comentarios