 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 | LTORGThe LTORG directive instructs the assembler to assemble the current literal pool immediately. The assembler assembles the current literal pool at the end of every code section. The end of a code section is determined by the AREA directive at the beginning of the following section, or the end of the assembly. These default literal pools can sometimes be out of range of some LDR pseudo-instructions. See LDR pseudo-instruction. Use LTORG to ensure that a literal pool is assembled within range. Large programs can require several literal pools. Place LTORG directives after unconditional branches or subroutine return instructions so that the processor does not attempt to execute the constants as instructions. The assembler word-aligns data in literal pools.
AREA Example, CODE, READONLY
start BL func1
func1 ; function body
; code
LDR r1,=0x55555555 ; => LDR R1, [pc, #offset to Literal Pool 1]
; code
MOV pc,lr ; end function
LTORG ; Literal Pool 1 contains literal &55555555.
data SPACE 4200 ; Clears 4200 bytes of memory,
; starting at current location.
END ; Default literal pool is empty.
|
|