ARM Technical Support Knowledge Articles

__ERROR__ DIRECTIVE

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

What does the __ERROR__ assembler directive do?

ANSWER

The __ERROR__ assembler directive output a user-defined error message. For example, the following assembly program:

__ERROR__ "This is an error message"

        end

generates the following listing file output.

LOC  OBJ            LINE     SOURCE
                       1
                       2     __ERROR__ "This is an error message"
*** ERROR #A80 IN 2 (.asdf.a51, LINE 2): This is an error message
                       3
                       4             end

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 14:18:47

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential