ARM-Thumb Lab GNU-based Assembly (Assembler directives)

DirectiveAction
.align NAlign the next item to a multiple of 2ⁿ bytes (N ≥ 0).
.ascii "string"Store the UTF-8 bytes of a string.
.asciz "string"Store the UTF-8 bytes of a string, followed by a zero byte.
.balign NAlign the next item to a multiple of N bytes.
.byte value [, …]Store 1 byte per value. Range: −128…255.
.dataPlace subsequent data in DATA RAM (0x20070000–0x2007077F).
.endStop reading the source (subsequent lines are ignored).
.equ symbol, exprAssign the value of expr to symbol (define a constant).
.equiv symbol, exprAssign the value of expr to symbol (define a constant); report an error if the symbol already exists.
.eqv symbol, exprEquivalent to .equiv.
.hword value [, …]Store 2 bytes per value. Range: −32768…65535.
.quad value [, …]Store 8 bytes per value. Range: −9223372036854775808…18446744073709551615.
symbol .req registerDefine a register alias.
.set symbol, exprSame as .equ. Also: symbol .set expr.
.space NReserve N zero-filled bytes.
.textAssemble subsequent instructions and data in the PROGRAM ROM (0x00000000–0x000001FF).
.unreq symbolRemove a register alias. Also: symbol .unreq.
.word value [, …]Store 4 bytes per value. Range: −2147483648…4294967295.