SHASM Symbol Handling Directives

The following table shows SHASM assembler directives for symbol handling.

Directive Syntax Description
.EQU
<symbol>[:] .EQU <symbol value>
Sets a symbol value. Symbols defined with the .EQU directive cannot be redefined.
.ASSIGN
<symbol>[:] .ASSIGN <symbol value>
Sets a symbol value that can be redefined.
.REG
<symbol>[:] .REG  <register name>
<symbol>[:] .REG (<register name>)
Defines the alias of a register name. The alias of a register name defined with .REG cannot be redefined.
.EXPORT
.EXPORT <symbol>[,<symbol>...]
Declares export symbols. This declaration allows symbols defined in the current file to be referenced in other files.
.IMPORT
.IMPORT <symbol>[,<symbol>...]
Declares import symbols. This declaration allows symbols defined in other files to be referenced in the current file.
.GLOBAL
.GLOBAL <symbol>[,<symbol>...]
Declares export and import symbols. This declaration allows symbols defined in the current file to be referenced in other files and allows symbols defined in other files to be referenced in the current file.

See Also

SHx Series Assembler Directives | SHASM Section and Location Directives | SHASM Data and Data Area Directives | SHASM Function-Definition Directives | SHASM Debug Information Directives | SHASM Listing Directives | SHASM Miscellaneous Directives | SHASM Conditional Assembly Directives | SHASM Macro Directives

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.