Summary of assembler directives
The assembler directives are classified into these groups according to their function:
This table gives a summary of all the assembler directives:
Directive | Description | Section | |
|---|---|---|---|
| Is set to number of arguments passed to macro. | Macro processing | |
| Includes a file. | Assembler control | |
| Assigns a value to a label. | C-style preprocessor | |
| Introduces a new condition in an | C-style preprocessor | |
| Assembles instructions if a condition is false. | C-style preprocessor | |
| Ends an | C-style preprocessor | |
| Generates an error. | C-style preprocessor | |
| Assembles instructions if a condition is true. | C-style preprocessor | |
| Assembles instructions if a symbol is defined. | C-style preprocessor | |
| Assembles instructions if a symbol is undefined. | C-style preprocessor | |
| Includes a file. | C-style preprocessor | |
| Generates a message on standard output. | C-style preprocessor | |
| Recognized but ignored. | C-style preprocessor | |
| Undefines a label. | C-style preprocessor | |
| C-style comment delimiter. | Assembler control | |
| C++ style comment delimiter. | Assembler control | |
| Assigns a permanent value local to a module. | Value assignment | |
| Sets module attributes. | Module control | |
| Assigns a permanent value local to a module. | Value assignment | |
| Aligns the program location counter by inserting zero-filled bytes. | Section control | |
| Aligns the program location counter. | Section control | |
| Aligns the program location counter by inserting zero-filled bytes. | Section control | |
| Interprets subsequent instructions as 32-bit (Arm) instructions. | Mode control | |
| Begins a named absolute segment. | Segment control | |
| Assigns a temporary value. | Value assignment | |
| Specifies that a function is a call graph root. | Function | |
| Disables case sensitivity. | Assembler control | |
| Enables case sensitivity. | Assembler control | |
| Specifies call frame information. | Call frame information | |
| Interprets subsequent instructions as Arm, Thumb, or A64 instructions, depending on the setting of related assembler options. | Mode control | |
| Interprets subsequent instructions as 16-bit (Thumb) instructions. Replaced by | Mode control | |
| Interprets subsequent instructions as 32-bit (Arm) instructions. Replaced by | Mode control | |
| Sets the number of columns per page. Retained for backward compatibility reasons—recognized but ignored. | Listing control | |
| Defines an area of data within a code section. | Mode control | |
| Defines an area of data within a code section, marked as 64-bit data as a hint for disassemblers. | Mode control | |
| Generates 8-bit constants, including strings. | Data definition or allocation | |
| Generates 16-bit constants. | Data definition or allocation | |
| Generates 24-bit constants. | Data definition or allocation | |
| Generates 32-bit constants. | Data definition or allocation | |
| Generates 64-bit constants. | Data definition or allocation | |
| Generates 8-bit byte constants, including strings. | Data definition or allocation | |
| Generates 32-bit long word constants. Alias for | Data definition or allocation | |
| Generates 64-bit long constants. Alias for | Data definition or allocation | |
| Generates 16-bit word constants, including strings. Alias for | Data definition or allocation | |
| Defines a file-wide value. | Value assignment | |
| Generates 16-bit half precision floating point constants. | Data definition or allocation | |
| Generates 32-bit floating-point constants. | Data definition or allocation | |
| Generates 64-bit floating-point constants. | Data definition or allocation | |
| Allocates space for 8-bit integers. | Data definition or allocation | |
| Allocates space for 16-bit integers. | Data definition or allocation | |
| Allocates space for 24-bit integers. | Data definition or allocation | |
| Allocates space for 32-bit integers. | Data definition or allocation | |
| Allocates space for 64-bit integers. | Data definition or allocation | |
| Assembles instructions if a condition is false. | Conditional assembly | |
| Specifies a new condition in an | Conditional assembly | |
| Ends the assembly of the last module in a file. | Module control | |
| Ends an | Conditional assembly | |
| Ends a macro definition. | Macro processing | |
| Ends a repeat structure. | Macro processing | |
| Assigns a permanent value local to a module. | Value assignment | |
| Aligns the program counter to an even address. | Section control | |
| Exits prematurely from a macro. | Macro processing | |
| Imports an external symbol. | Symbol control | |
| Imports an external symbol (which can be undefined. | Symbol control | |
| Assembles instructions if a condition is true. | Conditional assembly | |
| Imports an external symbol. | Symbol control | |
| Includes a file. | Assembler control | |
| Creates symbols local to a macro. | Macro processing | |
| Controls conditional assembler listing. | Listing control | |
| Controls multi-line code listing. | Listing control | |
| Controls the listing of macro generated lines. | Listing control | |
| Controls the listing of macro definitions. | Listing control | |
| Controls assembler-listing output. | Listing control | |
| Retained for backward compatibility reasons. Recognized but ignored. | Listing control | |
| Controls the listing of lines generated by repeat directives. | Listing control | |
| Generates a cross-reference table. | Listing control | |
| Directs the current literal pool to be assembled immediately following the directive. | Assembler control | |
| Defines a macro. | Macro processing | |
| Aligns the program location counter to an odd address. | Section control | |
| Recognized but ignored. | Symbol control | |
| Retained for backward compatibility reasons. | Listing control | |
| Retained for backward compatibility reasons. | Listing control | |
| Sets a module attribute. | Module control | |
| Exports symbols to other modules. | Symbol control | |
| Exports symbols to other modules, multiple definitions allowed. | Symbol control | |
| Sets the default base. | Assembler control | |
| Assembles instructions a specified number of times. | Macro processing | |
| Repeats and substitutes characters. | Macro processing | |
| Repeats and substitutes strings. | Macro processing | |
| Forces a symbol to be referenced. | Symbol control | |
| Sets a module attribute. | Module control | |
| Begins a section. | Section control | |
| Declares runtime model attributes. | Module control | |
| Begins a section. | Section control | |
| Sets ELF type and flags for a section. | Section control | |
| Assigns a temporary value. | Value assignment | |
| Interprets subsequent instructions as Thumb execution-mode instructions. | Mode control |