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

136

Chapter 4. Assembler Directives

 

 

Other Directives

END

The END directive signals the end of the assembly module. Any text in the assembly file that appears after the END directive is ignored.

The END directive is required in every assembly source file. If the END statement is excluded, Ax51 will generate a warning message.

Example

END

4 _ _ERROR_ _

The _ _ERROR_ _ directive generates standard error messages that are report the same style as normal Ax51 assembler errors. The _ _ERROR_ _ directive is specified as follows:

__ERROR__

text

where

 

text

is the error text that should be displayed in the listing file.

 

The error text is also displayed on the console if the

 

“ERRORPRINT” control described on page 205 is used.

Example

IF CVAR1LEN > 10

__ERROR__ "CVAR1 LEN EXCEEDS 10 BYTES" ENDIF

$IF TESTVERS AND RELEASE

__ERROR__ "TESTVERS GENERATED IN RELEASE MODE" $ENDIF

Shaded directives and options are available only in AX51 and A251.

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