Keil™, An ARM® Company

Ax51 User's Guide

Predefined Macros

The Ax51 Assembler provides the following predefined constants you may use in preprocessor directives and assembler code to create portable programs.

ConstantDescription
__A51__Version number of the A51 Assembler (for example, 710 for version 7.10).
__AX51__Version number of the AX51 Assembler (for example, 212 for version 2.12).
__DATE__Date when the assembly was started in ANSI format (month dd yyyy).
__DATE2__Date when the compilation was started in short form (mm/dd/yy).
__FILE__Name of the file being assembled.
__KEIL__Set to 1 to indicate the KEIL A51 Assembler.
__LINE__Current line number in the file being assembled.
__MOD_CONT__AX51 is generating code in Dallas 24-bit contiguous mode enabled with the MOD_CONT Assembler Directive.
__TIME__Time when the assembly was started.

Note

  • There are two (2) leading and trailing underscore characters ('_') used for the predefined constants.