13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3−62PCP Reference Manual.WARNINGSyntax.WARNING [{string | exp}[,{string | exp}]...]DescriptionWith the .WARNING directive (Programmer Generated Warning) you tellthe assembler to output a warning message during the assembling process.The total warning count will be incremented as with any other warning.The .WARNING directive is for example useful in combination withconditional assembly for exceptional condition checking. The assemblyprocess proceeds normally after the warning has been printed.Optionally, you can specify an arbitrary number of strings and expressions,in any order but separated by commas, to describe the nature of thegenerated warning. If you use expressions, the assembler outputs theresult. The assembler outputs a space between each argument.ASSEMBLY LANGUAGEThis directive has no effect on the exit code of the assembler, unless youuse the assembler option −−warnings−as−errors. In that case theassembler exits with exit code 1 (an error).A label is not allowed before this directive.Example.WARNING ’parameter too large’This results in the warning:W144: ["filename" line] Parameter out of rangeRelated information.FAIL (Programmer Generated Error),.MESSAGE (Programmer Generated Message)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!