Share via


SH-4 Assembler Symbol Handling Directives (Windows Embedded CE 6.0)

1/5/2010

The following table shows SH-4 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

Reference

SH-4 Assembler Directives