ARM VERSION 1.2 Computer Hardware User Manual


 
Directives Reference
7-38 Copyright © 2000, 2001 ARM Limited. All rights reserved. ARM DUI 0068B
7.5.5 FRAME RESTORE
Use the
FRAME RESTORE
directive to inform the assembler that the contents of specified
registers have been restored to the values they had on entry to the function. You can only
use it within functions with
FUNCTION
and
ENDFUNC
or
PROC
and
ENDP
directives.
Syntax
FRAME RESTORE {reglist}
where:
reglist
is a list of registers whose contents have been restored. There must be at
least one register in the list.
Usage
Use
FRAME RESTORE
immediately after the callee reloads registers from the stack. You
need not do this after the last instruction in a function.
reglist
can contain integer registers or floating-point registers, but not both.
Note
If your code uses a single instruction to load registers and alter the stack pointer, you
can use
FRAME POP
instead of using both
FRAME RESTORE
and
FRAME ADDRESS
(see FRAME
POP on page 7-35).