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
A program must have an entry point. You can specify an entry point in the following ways:
You can declare more than one entry point in a program, although a source file cannot contain more than one
If the program contains multiple entry points, then you must select one of them. You do this by exporting the symbol for the
AREA ARMex, CODE, READONLY ENTRY ; Entry point for the application. EXPORT ep1 ; Export the symbol so the linker can find it ep1 ; in the object file. ; code END
When you invoke armlink, if other entry points are declared in the program, then you must specify
of your data.