-WmsgFob: Message format for batch mode

Group

Messages

Scope

Assembly Unit

Syntax
-WmsgFob<string>

Arguments

<string>: format string (see below).

Default
-WmsgFob"%f%e(%l): %K %d: %m\n"

Description

With this option it is possible to modify the default message format in the batch mode. The formats in in the following listing are supported (assumed that the source file is x:\Freescale\sourcefile.asmx).

Listing: Supported formats for messages in the batch node

Format  Description  Example
----------------------------------------------------

%s     Source Extract

%p     Path                 x:\Freescale\

%f     Path and name        x:\Freescale\sourcefile

%n     Filename             sourcefile

%e     Extension           .asmx

%N     File (8 chars)       sourcefi

%E     Extension (3 chars)  .asm

%l     Line                 3

%c     Column               47

%o     Pos                  1234

%K     Uppercase kind       ERROR

%k     Lowercase kind       error

%d    Number               A1051

%m    Message              text

%%    Percent              %

\n    New line
Example
ASMOPTIONS=-WmsgFob"%f%e(%l): %k %d: %m\n"

produces a message, displayed in in the following listing, using the format in in the above listing. The options are set for producing the path of a file with its filename, extension, and line.

Listing: Error message

x:\Freescale\sourcefile.asmx(3): error A1051: Right parenthesis expected
See also

Assembler options: