To create a string data definition, enclose a sequence of characters in quotation marks.
A string is ended with a null byte, a byte containing the value 0.
preface BYTE "Hello", 0
Each character uses a byte of storage. The above code is equal to:
preface BYTE 'H', 'e', 'l', 'l', 'o', 0
A string can be spread across multiple lines, for example:
preface BYTE "Assembly language for Intel computers", 0Dh, 0Ah
BYTE "A book for IA-32 processor architecture.", 0
The hexadecimal bytes 0Dh
and 0Ah
(carriage-return line-feed) advance the cursor to the beginning of the next line of standard output.
The continuation character (\) may be used to concatenate two lines into a single program statement. For example, the following two statements are the same:
preface BYTE "Assembly language for Intel computers", 0
preface \
BYTE "Assembly language for Intel computers", 0