ARM Diagnostic Directives
The following table describes ARM assembly directives that generate diagnostic information.
Directive | Syntax | Description |
---|---|---|
ASSERT |
|
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 both inside and outside macros. |
! |
|
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 |
|
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 | ARM Assembler | ARM Initialization and Layout Directives | ARM Linking Directives | ARM Directives for Conditional Assembly | ARM Dynamic Listing Directive Options | ARM-Thumb Interworking Directives | ARM Constant and Variable Declarations | ARM Assembler Directives for Macro Definition | Miscellaneous ARM Directives
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.