Keil Logo

About assembly control directives

12.2 About assembly control directives

Some assembler directives control conditional assembly, looping, inclusions, and macros.

These directives are as follows:
  • MACRO and MEND.
  • MEXIT.
  • IF, ELSE, ENDIF, and ELIF.
  • WHILE and WEND.

Nesting directives

The following structures can be nested to a total depth of 256:
  • MACRO definitions.
  • WHILE...WEND loops.
  • IF...ELSE...ENDIF conditional structures.
  • INCLUDE file inclusions.
The limit applies to all structures taken together, regardless of how they are nested. The limit is not 256 of each type of structure.
Non-ConfidentialPDF file icon PDF versionARM DUI0379H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  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.