Keil Logo

C51: WARNING 271 (MISPLACED ASM/ENDASM CONTROL)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When I compile my C source file the compiler reports the following diagnostic:

WARNING 271:  MISPLACED ASM/ENDASM CONTROL

ANSWER

The asm and endasm statements may not be nested. Endasm requires that an assembly block be opened by a previous asm statement. For example:

#pragma ASM
.
.
.
assembler instruction(s)
.
.
.
.
#pragma ENDASM

MORE INFORMATION

  • Refer to ASM in the Cx51 User's Guide.
  • Refer to ENDASM in the Cx51 User's Guide.

Last Reviewed: Tuesday, October 24, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.