Keil Logo

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

  • Refer to __ERROR__ in the Ax51 User's Guide.

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.