User manual
Error messages ST Assembler-Linker
78/89 Doc ID 11392 Rev 4
Appendix B Error messages
B.1 Format of error messages
There are two classes of error trapped by the assembler
● fatal
● recoverable
A fatal error stops the assembly there and then, returning you to the caller (which may or
may not be DOS; CBE can also invoke the assembler) with a message and error number
describing the problem.
The format of the error messages is as follows:
file.asm(line): as<pass> : Error <errno> : <message> '<text>'
Figure 3. Error message format example
Note: The name of the program that handled the error (third field), can be as1 or as2 depending
on the pass in progress when the error was found.
The error number (fourth field) can be used as an index to find a more complete description
of the error in the next section (fatal errors read 'FATAL nn', instead of 'ERROR nn').
B.2 File CBE.ERR
Both fatal and recoverable errors are copied into the file CBE.ERR as they occur. Most link
errors (described on page 83) are also copied into CBE.ERR.
CBE can use this error file to give automatic error finding.
error number
name of the program that handled the error
name of the file where the error was found
line number in the file
string describing the error
prog.asm(10): as2 : Error 50 : Doubly defined label 'fred'