Reference Guide
Chapter 4 109
Assembler Directives and Pseudo-Operations
.STRING and .STRINGZ Pseudo-Operations
.STRING and .STRINGZ
Pseudo-Operations
The .STRING pseudo-operation reserves storage for a data area and
initializes it to ASCII values. The .STRINGZ pseudo-operation reserves
storage the same as .STRING, but appends a zero byte to the data. This
creates a C-language-type string. If the statement is labeled, the label
refers to the first byte of the storage area.
Syntax
.STRING "init_value"
.STRINGZ "init_value"
Parameters
init_value A sequence of ASCII characters, surrounded by
quotation marks. A string can contain up to 256
characters. The enclosing quotation marks are not
stored.
The following escape sequences can be used to
represent characters:
\" Quotation mark
\0 Null (=\x00; ASCII NUL)
\\ Backslash
\b Backspace (=\x08; ASCII BS)
\f Form feed (=\x0C; ASCII FF)
\n Newline (=\x0A; ASCII LF)
\r Carriage return (=\x0D; ASCII CR)
\t Tab (=\x09; ASCII HT)
\xhh or \Xhh Any 8-bit character; hh is two
hexadecimal digits.