Section 3: Assembler
229
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.echo — Echo Message
Syntax
.echo {
text | expression[.format] } . . .
Description
text
Specifies an ASCII string. Whitespace characters are permitted,
but curly braces ( { } ) are not.
expression
Specifies an absolute expression that cannot contain any forward,
external, or undefined references. The expression must be
enclosed in curly braces ( { } );
format
Specifies the format for printing the preceding expression. The
legal format characters, which correspond to those of the ANSI
standard C library function printf, are shown below; the default is
d
.
d
Signed decimal
u
Unsigned decimal
o
Octal
x
Hexadecimal (lowercase)
X
Hexadecimal (uppercase)
The .echo directive causes the specified message to be written to the standard
output stream, stdout. The end of the message is marked by the newline
character; therefore, no comment field is permitted with this directive. This
directive can be used for both informational and diagnostic purposes.
Example
.echo The end of the data section is {data_end}.x
The symbol data_end is a user-defined label, which has been defined prior to the
directive in this example. If the value of the label is 0x42f8, then this directive
produces the following message:
The end of the data section is 42f8