Everything

.set


Defines a name.

[Syntax]

Symbol field

Mnemonic field

Operand field

Comment field

name
.set
absolute-expression
[; comment]

[Function]

Defines a symbol having a symbol name specified by the symbol field and a absolute-expression value specified by the operand field.

[Use]

-

You can use this directive to define names for numerical data that can be used instead of the actual numbers in the operands of machine-language instructions and directives in source code.

-

We recommend defining frequently used numerical values as names. Even if a given value in the source program is to be changed, you will only need to change the value corresponding to the name.

[Description]

-

Incorrect formats for an operand will cause processing to end.

-

The .set directive may be described anywhere in a source program.

-

Each name is a redefinable symbol.

-

Names cannot be externally defined.

[Example]

Defines the value of symbol sym1 as 0x10.

sym1    .set 0x10

[Caution]

-

Any label reference or undefined symbol reference must not be used to specify a value.
Otherwise, an error occurs.

-

If a symbol of the same name as a label name or a macro name defined by the .macro directive is specified, an error occurs.