Share via


ARM Diagnostic Directives (Windows Embedded CE 6.0)

1/5/2010

The following ARM assembly directives generate diagnostic information.

Directive Syntax Description

ASSERT

ASSERT logical-expression

Supports diagnostic generation.

If logical-expression returns FALSE, the assembler generates a diagnostic message during the second pass of the assembly.

ASSERT can be used inside and outside macros.

!

! arithmetic-expression, string-expression

Related to ASSERT, but is inspected on both passes of the assembly, providing a more flexible means for creating custom error messages.

If arithmetic-expression equals 0, the assembler takes no action during pass one, but prints string-expression as a warning during pass two.

If arithmetic-expressiondoes not equal 0, the assembler prints string-expression as a diagnostic message. The assembly halts after pass one.

This directive is identical to the INFO directive.

INFO

INFO arithmetic-expression, string-expression

If arithmetic-expressionequals 0, the assembler takes no action during pass one.

It adds source file and line number as a prefix to string-expression, and prints the result as a warning during pass two.

If arithmetic-expressiondoes not equal 0, the assembler prints string-expression as a diagnostic message. The assembly halts after pass one.

This directive is identical to the ! directive.

See Also

Concepts

ARM Assembler Directives