Strings

.ascii "string" or .asciiz "string"
.ascii and .asciiz assemble each string from the list into successive locations. The .ascii directive does not NULL pad the string and the .asciiz adds a NULL, which is zero. String constants begin and end with double quotation marks ("). Backslash escape characters, based on the C language backslash conventions, can be used in strings.

For octal notation, the backslash conventions require three characters when the next character could be confused with the octal number. For hexadecimal notation, the backslash conventions require two characters when the next character could be confused with the hexadecimal number.
Convention Meaning
\a Alert (0x07)
\b Backspace (0x08)
\f Form feed (0x0c)
\n Newline (0x0a)
\r Carriage return (0x0d)
\t Horizontal tab (0x09)
\v Vertical feed (0x0b)
\\ Backslash (0x5c)
\" Quotation mark (0x22)
\' Single quote (0x27)
\000 Character whose octal value is 000
\Xnn Character whose hexadecimal value is nn

.globl name
The identifier “name” will be used outside of this source file (that is, used “globally”) as the label of a particular location in main memory.

name:
The line “name:” defines a symbolic address. A symbolic address is a symbol (an identifier) that is the source code name for a location in memory. Using a symbolic address is much easier than using a numerical address. In particular, the symbol main should be the label on the start of any stand-alone program, and should be made global.