Arm VERSION 1.2 Manuel d'utilisateur Page 319

  • 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 318
Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All rights reserved. 7-37
Example
p PROC ; Canonical frame address is sp + 0
EXPORT p
STMFD sp!,{r4-r6,lr}
; sp has moved relative to the canonical frame address,
; and registers r4, r5, r6 and lr are now on the stack
FRAME PUSH {r4-r6,lr}
; Equivalent to:
; FRAME ADDRESS sp,16 ; 16 bytes in {r4-r6,lr}
; FRAME SAVE {r4-r6,lr},-16
7.5.4 FRAME REGISTER
Use the
FRAME REGISTER
directive to maintain a record of the locations of function
arguments held in registers. You can only use it within functions with
FUNCTION
and
ENDFUNC
or
PROC
and
ENDP
directives.
Syntax
FRAME REGISTER reg1,reg2
where:
reg1
is the register that held the argument on entry to the function.
reg2
is the register in which the value is preserved.
Usage
Use the
FRAME REGISTER
directive when you use a register to preserve an argument that
was held in a different register on entry to a function.
Vue de la page 318
1 2 ... 314 315 316 317 318 319 320 321 322 323 324 ... 359 360

Commentaires sur ces manuels

Pas de commentaire