String Constants

String constants used in expressions are converted to a concatenated sequence of right-aligned ASCII bytes. String constants for the Freescale DSP processor are limited to four characters; subsequent characters are ignored by the assembler. You may use the DC and DCB directives to define strings longer than 4 bytes. The table below lists some examples.

Table 1. Use of String Constants in Expressions
Expression String Bytes
'ABCD' ABCD $41424344
'"79' "79 $00273739
'' null string $00000000
'abcdef' abcd $61626364