You copied the Doc URL to your clipboard.

21.15 DCB

The DCB directive allocates one or more bytes of memory, and defines the initial runtime contents of the memory.


{label} DCB expr{,expr}...



is either:

  • A numeric expression that evaluates to an integer in the range –128 to 255.

  • A quoted string. The characters of the string are loaded into consecutive bytes of store.


If DCB is followed by an instruction,use an ALIGN directive to ensure that theinstruction is aligned.

= is a synonym for DCB.


Unlike C strings, ARM assembler strings are not nul-terminated.You can construct a nul-terminated C string using DCB asfollows:

C_string   DCB  "C_string",0

Related concepts

Was this page helpful? Yes No