ARM Technical Support Knowledge Articles

COMMENTS IN MACROS

Applies to: A166 Macro Assembler

Answer

QUESTION

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?

ANSWER

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

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

MORE INFORMATION

Article last edited on: 2005-07-15 10:39:14

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential