Keil Logo

Syntax of numeric local labels

7.11 Syntax of numeric local labels

When referring to numeric local labels you can specify how armasm searches for the label.


n[routname] ; a numeric local label
%[F|B][A|T]n[routname] ; a reference to a numeric local label
is the number of the numeric local label in the range 0-99.
is the name of the current scope.
introduces the reference.
instructs armasm to search forwards only.
instructs armasm to search backwards only.
instructs armasm to search all macro levels.
instructs armasm to look at this macro level only.


If neither F nor B is specified, armasm searches backwards first, then forwards.
If neither A nor T is specified, armasm searches all macros from the current level to the top level, but does not search lower level macros.
If routname is specified in either a label or a reference to a label, armasm checks it against the name of the nearest preceding ROUT directive. If it does not match, armasm generates an error message and the assembly fails.
Related concepts
Related reference
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.