Keil™, An ARM® Company

Technical Support

A251: MACRO ASSEMBLY CODE PROBLEMS

Information in this article applies to:

  • C251 Version 2.14

SYMPTOMS

Assembly code compiles in one location but not another. Specifically, for macro definitions like the following:

%DEFINE(HEAP)           (0h)

a syntax error is generated.

CAUSE

The error generates because MPL (Macro Programming Language) is not selected as the default macro language.

RESOLUTION

Use the MPL directive on the assembler command line. In µVision, select the MPL option from the Input Tab of the A251 Assembler Options dialog box.

MORE INFORMATION

  • Refer to MPL in the Ax51 User's Guide.

Last Reviewed: Friday, July 15, 2005


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