Arm VERSION 1.2 Manual de usuario Pagina 48

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 47
Writing ARM and Thumb Assembly Language
2-36 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
; Literal Pool 1]
LDR r1, =Darea + 12 ; => LDR R1,[PC, #offset into
; Literal Pool 1]
LDR r2, =Darea + 6000 ; => LDR R2, [PC, #offset into
; Literal Pool 1]
MOV pc,lr ; Return
LTORG ; Literal Pool 1
func2
LDR r3, =Darea + 6000 ; => LDR r3, [PC, #offset into
; Literal Pool 1]
; (sharing with previous literal)
; LDR r4, =Darea + 6004 ; If uncommented produces an error
; as Literal Pool 2 is out of range
MOV pc, lr ; Return
Darea SPACE 8000 ; Starting at the current location,
; clears a 8000 byte area of memory
; to zero
END ; Literal Pool 2 is out of range of
; the LDR instructions above
Vista de pagina 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 359 360

Comentarios a estos manuales

Sin comentarios