Environment Variables
Environment Variables Description
MCUez HC12 Assembler User’s Manual
MOTOROLA Environment Variables 65
3.5.7 ERRORFILE
Syntax: ERRORFILE=<filename>
Arguments: <filename>: Filename with possible format specifiers
Description: The environment variable ERRORFILE specifies the name of
the error file used by the assembler.
Possible format specifiers are:
%n: Substitute with the filename, without the path
%p: Substitute with the path of the source file
%f: Substitute with the full filename (path included; same as
%p%n)
Examples: ERRORFILE=MyErrors.err
Logs all errors in the file MyErrors.err in the current
directory
ERRORFILE=\tmp\errors
Logs all errors in the filenamed errors in the directory \tmp
ERRORFILE=%f.err
Logs all errors in a file with the same name as the source file
(with extension .err) into the same directory as the source
file.For example, ifthe file \sources\test.asmis assembled,an
error file \sources\test.err will be generated.
ERRORFILE=\dir1\%n.err
An error file \dir1\test.err will be generated for a source file
named test.asm.