.emsg/.mmsg/.wmsg
Syntax
Description
Example
4-42
Define Messages
.emsg string
.mmsg string
.wmsg string
These directives allow you to define your own error and warning messages.
The assembler tracks the number of errors and warnings it encounters and
prints these numbers on the last line of the listing file.
The .emsg directive sends error messages to the standard output device in
the same manner as the assembler, incrementing the error count and prevent-
ing the assembler from producing an object file.
The .mmsg directive sends assembly-time messages to the standard output
device in the same manner as the .emsg and .wmsg directives, but it does not
set the error or warning counts, and it does not prevent the assembler from
producing an object file.
The .wmsg directive sends warning messages to the standard output device
in the same manner as the .emsg directive, but it increments the warning count
rather than the error count, and it does not prevent the assembler from produc-
ing an object file.
In this example. the message ERROR –– MISSING PARAMETER is sent to
the standard output device.
Source file:
.global
MSG_EX
.macro parm1
.if
$symlen(parm1) = 0
.emsg
"ERROR –– MISSING PARAMETER"
.else
add
parm1, A
.endif
.endm
MSG_EX PARAM
MSG_EX
PARAM
Need help?
Do you have a question about the TMS320C54x and is the answer not in the manual?