ARM Technical Support Knowledge Articles

ERROR 5 (ILLEGAL USE OF A RESERVED WORD)

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


SYMPTOMS

I have a symbol declared as extern in my assembler with the following line:

EXTRN XDATA:BYTE (cmd0)

But when I assemble my file, I get:

ERROR 5 ILLEGAL USE OF A RESERVED WORD.

What am I doing wrong?

CAUSE

You may only specify the type of the external symbol if you are using the A251 assembler. The A51 assembler is complaining that it does not like BYTE to be used with an EXTRN directive.

RESOLUTION

Change your EXTRN directive to:

EXTRN XDATA (cmd0)

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-19 10:01:15

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