Keil Logo

Non-Fatal Errors

Syntax and semantic errors typically occur in the source program. They identify actual programming errors. When an error is encountered, the assembler attempts to recover from the error and continue processing the source file. As more errors are encountered, the assembler outputs additional error messages. No object file is produced once an error is encountered.

The A251 Assembler outputs errors to the listing file as follows:

LOC  OBJ             LINE SOURCE
                        1
                        2 C100    SECTION CODE
                        3 P100    PROC    NEAR
                        4         MOV     R1,#12A0
*** ____________________________________________^
*** ERROR #1, LINE #4, ILLEGAL CHARACTER IN NUMERIC CONSTANT
                        5         MOV     R0,#25 *, 10
*** ______________________________________________^
*** ERROR #6, LINE #5, SYNTAX ERROR
                        6 P100    ENDP
                        7 C100    ENDS
*** ERROR #89, LINE #7, PREMATURE END OF FILE (NO END STATEMENT)

Most errors are marked with a carat character ('^') indicating the first incorrect character encountered. It is possible that the position indicated is caused by a prior error. If a source line contains more than one error the positions are indicated in subsequent lines.

The following message:

*** MORE ERRORS DETECTED, NOT REPORTED.

may appear if more than five errors occur on a single line.

  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.