5.1.2 Names

Desired names can be defined and used in assembly-language files.

Names are classified into the following types.

Table 5.1

Types of Name

Type

Description

Label name

A name having an address as its value.

Symbol name

A name having a constant as its value (the name of a label is also included).

Section name

The name of a section that is defined through the .SECTION directive.

Location symbol name

The start address of the operation in a line including a location symbol ($).

Macro name

Macro definition name

Rules for Names:

-

There is no limitation on the number of characters in a name.

-

Names are case-sensitive; "LAB" and "Lab" are handled as different names.

-

An underscore (_) and a dollar sign ($) can be used in names.

-

The first character in a name must not be a digit.

-

Any reserved word must not be used as a name.

Note

Flag names (U, I, O, S, Z, and C), which are reserved words, can be used only for section names.