Assembler User GuidePreface Overview of the Assembler Overview of the ARM Architecture Structure of Assembly Language Modules Writing ARM Assembly Language Condition Codes Using the Assembler Symbols, Literals, Expressions, and Operators VFP Programming Assembler Command-line Options ARM and Thumb Instructions VFP Instructions Directives Reference Alphabetical list of directives About assembly control directives About frame directives ALIAS ALIGN AREA ARM or CODE32 ASSERT ATTR CN CODE16 COMMON CP DATA DCB DCD and DCDU DCDO DCFD and DCFDU DCFS and DCFSU DCI DCQ and DCQU DCW and DCWU DN and SN END ENDFUNC or ENDP ENTRY EQU EXPORT or GLOBAL EXPORTAS FIELD 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 GBLA, GBLL, and GBLS GET or INCLUDE IF, ELSE, ENDIF, and ELIF IMPORT and EXTERN INCBIN INFO KEEP LCLA, LCLL, and LCLS LTORG MACRO and MEND MAP MEXIT NOFP OPT RELOC REQUIRE REQUIRE8 and PRESERVE8 RLIST RN ROUT SETA, SETL, and SETS SPACE or FILL THUMB THUMBX TTL and SUBT WHILE and WEND Via File Syntax
The assembler assembles the current literal pool at the end of every code section. The end of a code section is determined by the
These default literal pools can sometimes be out of range of some
Large programs can require several literal pools. Place
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.
of your data.