Keil™, An ARM® Company

Technical Support

A51: __ERROR__ DIRECTIVE


Information in this article applies to:

  • C51 Version 6 and Later

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

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure