You copied the Doc URL to your clipboard.

21.28 EXPORTAS

The EXPORTAS directive enables you to export a symbol from the object file, corresponding to a different symbol in the source file.

Syntax

EXPORTAS symbol1, symbol2

where:

symbol1

is the symbol name in the source file. symbol1 musthave been defined already. It can be any symbol, including an areaname, a label, or a constant.

symbol2

is the symbol name you want to appear in the objectfile.

The symbol names are case-sensitive.

Usage

Use EXPORTAS to change a symbol inthe object file without having to change every instance in the sourcefile.

Examples

    AREA data1, DATA       ; Starts a new area data1.    AREA data2, DATA       ; Starts a new area data2.    EXPORTAS data2, data1  ; The section symbol referred to as data2                           ; appears in the object file string table as data1.one EQU  2                      EXPORTAS one, two      ; The symbol 'two' appears in the object    EXPORT one             ; file's symbol table with the value 2.                           

Related reference

Was this page helpful? Yes No