5.8.46. INFO or ! directive

The INFO directive supports diagnostic generation on either pass of the assembly.

! is a synonym for INFO.

Syntax

The syntax of INFO is:

INFO numeric-expression, string-expression

where:

numeric-expression

is a numeric expression that is evaluated duringassembly. If the expression evaluates to zero:

  • no action is taken during pass one

  • string-expression is printed during pass two.

If the expression does not evaluate to zero, string-expression is printed as an error message and the assembly fails.

string-expression

is an expression that evaluates to a string.

Usage

INFO provides a flexible means for creating custom error messages. See Numeric expressions and String expressions for additional information on numeric and string expressions.

See also ASSERT directive.

Examples

		INFO		0, "Version 1.0"
		IF endofdata <= label1
		INFO		4, "Data overrun at label1"
		ENDIF
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential