4.3.2.1 Characters

A character constant can be written as the character preceded by a single quote character, for example, 'z, or as the character enclosed by single quote characters, for example, 'z'.

Special control characters an be specified by using an escape sequence. The assembler accepts the following escape characters.

Table 4-1. Special Characters and Usages
Escape CharacterDescriptionHex Value
\aBell (alert) character07
\bBackspace character08
\fForm-feed character0C
\nNew-line character0A
\rCarriage return character0D
\tHorizontal tab character09
\vVertical tab character0B
\\Backslash5C
\?Question mark character3F
\"Double quote character22
\digit digit digitOctal character code. The numeric code is 3 octal digits (0 - 7).
\x hex-digits or \X hex-digitsHex character code. All trailing hexadecimal digits (0 - 9, a - f, or A - F)are combined.

The value of a character constant in a numeric expression is the machine’s byte-wide code for that character. The assembler assumes your character set is ASCII.