.string pseudo-op
Purpose
Assembles character values into consecutive bytes and terminates the string with a null character.
Syntax
Item | Description |
---|---|
.string | StringConstant |
Description
The .string pseudo-op assembles the character values represented by StringConstant into consecutive bytes and terminates the string with a null character.
Parameters
Item | Description |
---|---|
StringConstant | Represents a string of character values assembled into consecutive bytes. |
Examples
The following example illustrates the use of the .string pseudo-op:
mine: .string "Hello, world!"
# This produces
# 0x48656C6C6F2C20776F726C642100.