Keil™, An ARM® Company

Technical Support

A51: ERROR 5 (ILLEGAL USE OF A RESERVED WORD)


Information in this article applies to:

  • C51 Version 5.50

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

  • Refer to page 71 of the A51 Assembler manual (07.98) for information on the EXTRN directive. Note the annotations which indicate features specific to the A251 assembler.

SEE ALSO

Last Reviewed: Tuesday, July 19, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure