Keil Logo

A166: Comments in Macros


I need to comment out some definitions in my A166 Macros. However, the semicolon (;) does not seem to do that. For example, the following code...

%DEFINE (ADDRESS2) (040000H)
;;;;;;;; %DEFINE (ADDRESS2) (001000H)

defines ADDRESS2 to be 001000h instead of 040000h. What am I doing wrong?


You cannot comment out Macros with a simple semicolon (;). You must use the Macro Comment Function (%'):

%DEFINE (ADDRESS2) (040000H)
%' %DEFINE (ADDRESS2) (001000H)


Last Reviewed: Friday, June 2, 2017

Did this article provide the answer you needed?
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.