[previous] 1004 [next] [S] '#endasm' found without matching '#asm' preprocessing directive.
Syntax errors

When analysis is run with the option "-ex asm", there are various forms of inline assembler code statements which may be successfully parsed and ignored. One such mechanism is to surround the assembler statements with two directives: #asm and #endasm.

If QAC encounters #endasm without a preceding #asm directive, message 1004 will be generated. For example:


/*PRQA S 553 ++*/
/*************************/
/* OPTIONS: -ex asm      */
/*************************/

asm {MOV R1,A; XOR A,R2;}                    /* Message 1006 */
#endasm                                      /* Message 1004 */


No MISRA C:2012 Rules applicable to message 1004


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents