Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
59
Добавлен:
14.04.2015
Размер:
2.03 Mб
Скачать

Keil Software — A51/AX51/A251 Macro Assembler and Utilities

195

 

 

Chapter 7. Invocation and Controls

This chapter explains how to use Ax51 to assemble x51 assembly source files and discusses the assembler controls that may be specified on the command line and within the source file.

Using the controls described in this chapter, you can specify which operations are performed by Ax51. For example, you can direct Ax51 to generate a listing file, produce cross reference information, and control the amount of information included in the object file. You can also conditionally assemble sections of code using the conditional assembly controls.

Environment Settings

To run the Ax51 macro assembler and the utilities from a Windows command prompt, you must create new entries in the environment table. In addition, you must specify a PATH for the compiler folder. The following table lists the environment variables, their default paths, and a brief description.

Variable

Path

Description

PATH

KEIL\C51\BIN

This environment variable specifies the path of the Ax51

 

or KEIL\C251\BIN

executable programs.

TMP

 

This environment variable specifies which path to use for

 

 

temporary files generated by the assembler. If the specified

 

 

path does not exist, the assembler generates an error and

 

 

aborts compilation.

C51INC

KEIL\C51\INC

This environment variable specifies the location of the

 

KEIL\C251\INC

standard C51 or CX51 include files.

C251INC

This environment variable specifies the location of the

 

 

standard C251 include files.

Typically, these environment settings are automatically placed in your

7

AUTOEXEC.BAT file. However, to put these settings in a separate batch file, use

the following example as guideline:

PATH = C:\KEIL\C51\BIN

SET TMP = D:\

SET C51INC = C:\KEIL\C51\INC

Соседние файлы в папке HLP