
Go up to Memory Operands
Constants in Operands
In those operand formats that require a constant, the assembler will
accept either an integer or character constant. (String constants are
also supported by the assember, but they are only valid in ASCII
directives
). Any sequence of numeric characters
optionally preceded by a `+' or `-' that is not part of an identifier
is recognized as an integer constant. Any single printable character
(except '
or \
) surrounded by single quotes ('
) is
treated as a character constant. In addition, certain escape
sequences are recognized for character constants. The form of these
escape sequences and the characters they represent are shown below:
Sequence | Value |
'\'' | Single quote |
'\n' | Newline |
'\t' | Horizontal Tab |
'\\' | Backslash |
|