.AT     Ascii string Terminated

Syntax:

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

See also:

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

Function:

The .AT directive converts ASCII strings and/or expressions to hexadecimal bytes. The last generated byte will have an inverted bit b7 to signal the end of the string. This can be used to signal the end of a character processing loop. Apart from this minor difference the .AT directive works exactly the same as the .AS directive.

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 except the last one 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 except the last one, 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 F4           .AT  /Test/
0004-D4 E5 F3 74           .AT  -/Test/
0008-0D 54 65 73
000C-74 0A 8D              .AT  #$0D,/Test/,#$0A,#$0D
000F-8D D4 E5 F3
0013-F4 8A 0D              .AT  -#$0D,/Test/,#$0A,#$0D
0016-54 65 73 74
001A-0D 54 65 73
001E-F4                    .AT  /Test/,#$0D,\Test\