ARM Diagnostic Directives (Windows CE 5.0)

Send Feedback

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-expression does 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-expression equals 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-expression does 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

ARM Assembler Directives

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.