Assembler Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All r ights reserved. 3-19
3.6.1 String expressions
String expressions consist of combinations of string literals, string variables, string
manipulation operators, and parentheses. See:
String literals
Variables on page3-13
Unary operators on page3-26
String manipulation operators on page3-28
SETA, SETL, and SETS on page7-7.
Characters that cannot be placed in string literals can be placed in string expressions
using the
:CHR:
unary operator. Any ASCII character from 0 to 255 is allowed.
The value of a string expression cannot exceed 512 characters in length. It can be of zero
length.
Example
improb SETS "literal":CC:(strvar2:LEFT:4)
; sets the variable improb to the value "literal"
; with the left-most four characters of the
; contents of string variable strvar2 appended
3.6.2 String literals
String literals consist of a series of characters contained between double quote
characters. The length of a string literal is restricted by the length of the input line (see
Format of source lines on page3-8).
To include a double quote character or a dollar character in a string, use two of the
character.
C string escape sequences are also allowed, unless
-noesc
is specified (see Command
syntax on page 3-2).
Examples
abc SETS "this string contains only one "" double quote"
def SETS "this string contains only one $$ dollar symbol"