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