.AS     Ascii String

Syntax:

        .AS  [-] string | #expression [,string | #expression [,...]]

See also:

.AT   .AZ   .DA   .DB   .DL   .DR   .DW   .HS   .RF   .TS  

Function:

The .AS directive converts ASCII strings and/or expressions to hexadecimal bytes.

Boundary Sync:

In Version 3 of the SB-Assembler this directive will not perform a boundary sync.

Explanation:

The string parameter is a delimited string. The expression should evaluate to a positive number that is less than 256. The parameter can consist of more than one string and/or expression, which all should be separated from each other by commas.
All generated bytes will have bit b7=0 if the first character of the parameter is not a - sign, this is called positive ASCII. If the first character of the parameter is a - sign all generated bytes will have b7=1, this is called negative ASCII.
The delimiters may not enclose an empty string. They should enclose at least one character.

Examples:

0000-54 65 73 74           .AS  /Test/
0004-D4 E5 F3 F4           .AS  -/Test/
0008-0D 54 65 73
000C-74 0A 0D              .AS  #$0D,/Test/,#$0A,#$0D
000F-8D D4 E5 F3
0013-F4 8A 8D              .AS  -#$0D,/Test/,#$0A,#$0D
0016-54 65 73 74
001A-0D 54 65 73
001E-74                    .AS  /Test/,#$0D,\Test\