Keil Logo

Identifier Delimiters

Identifier delimiters are legal macro identifiers designated as delimiters. To define a macro that uses an identifier delimiter, you must prefix the delimiter with the @ symbol. You must separate the identifier delimiter from the macro identifiers (formal parameters or macro names) by a blank character.

When calling a macro defined with identifier delimiters, a blank delimiter must precede the identifier delimiter, but none must follow the identifier delimiter.

This example shows identifier delimiters' use in source text:

%*DEFINE (ADD X1 @TO X2 @STORE X3)(
     MOV    R1,%X1
     MOV    R2,%X2
     ADD    R1,R2
     MOV    %X3,R1
)
%ADD VAR1 TO VAR2 STORE VAR3

This example shows identifier delimiters' use in output text:

MOV    R1,VAR1
MOV    R2,VAR2
ADD    R1,R2
MOV    VAR3,R1
  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.