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.
Related reference
12.52 MACRO and MEND
12.54 MEXIT
12.45 IF, ELSE, ENDIF, and ELIF
12.68 WHILE and WEND
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.