 RealView Assembler User's Guide |
|
Technical Support On-Line Manuals RealView Assembler User's Guide Preface Introduction Writing ARM Assembly Language Assembler Reference ARM and Thumb Instructions Directives Reference Alphabetical list of directives Symbol definition directives GBLA, GBLL, and GBLS LCLA, LCLL, and LCLS SETA, SETL, and SETS RELOC RN RLIST CN CP Data definition directives LTORG MAP FIELD SPACE or FILL DCB DCD and DCDU DCDO DCFD and DCFDU DCFS and DCFSU DCI DCQ and DCQU DCW and DCWU COMMON DATA Assembly control directives Nesting directives MACRO and MEND MEXIT IF, ELSE, ENDIF, and ELIF WHILE and WEND Frame directives FRAME ADDRESS FRAME POP FRAME PUSH FRAME REGISTER FRAME RESTORE FRAME RETURN ADDRESS FRAME SAVE FRAME STATE REMEMBER FRAME STATE RESTORE FRAME UNWIND ON FRAME UNWIND OFF FUNCTION or PROC ENDFUNC or ENDP Reporting directives ASSERT INFO OPT TTL and SUBT Instruction set and syntax selection directives ARM, THUMB, THUMBX, CODE16 and CODE32 Miscellaneous directives ALIGN AREA ATTR END ENTRY EQU EXPORT or GLOBAL EXPORTAS GET or INCLUDE IMPORT and EXTERN INCBIN KEEP NOFP REQUIRE REQUIRE8 and PRESERVE8 ROUT | FRAME STATE REMEMBER5.5.8. FRAME STATE REMEMBERThe FRAME STATE REMEMBER directive saves the current information on how to calculate the canonical frame address and locations of saved register values. You can only use it within functions with FUNCTION and ENDFUNC or PROC and ENDP directives. During an inline exit sequence the information about calculationof canonical frame address and locations of saved register values can change. After the exit sequence another branch can continue using the same information as before. Use FRAME STATE REMEMBER to preserve this information, and FRAME STATE RESTORE to restore it. These directives can be nested. Each FRAME STATE RESTORE directive must have a corresponding FRAME STATE REMEMBER directive. See:
; function code
FRAME STATE REMEMBER
; save frame state before in-line exit sequence
POP {r4-r6,pc}
; do not have to FRAME POP here, as control has
; transferred out of the function
FRAME STATE RESTORE
; end of exit sequence, so restore state
exitB ; code for exitB
POP {r4-r6,pc}
ENDP
|
|