Everything

 

-define


This option defines a user-defined assembler symbol (name).

[Specification format]

-define=name[=def][,name[=def]]...

 

-

Interpretation when omitted

None

[Detailed description]

-

This option specifies name as a user-defined assembler symbol (name).

-

Specification of def is as follows.

-

Only integer values can be specified.

-

If a value other than an integer is specified, 0 is assumed.

-

Integer values can be specified in decimal notation, octal notation with the prefix method (0 ...), and hexadecimal notation (0x ...).

-

Only a negative (-) sign (not positive (+)) can be specified at the beginning of the value.

-

A negative number is converted to a two's complement value.

-

This is equivalent to adding "name .SET def" at the beginning of the assembly source program.

-

An error will occur if name is omitted.

-

If "=def" is omitted, def is regarded as 1.

-

This option can be specified more than once.

-

If both this option and -undefine option are specified, the option specified last will be valid.

[Example of use]

-

To define "sample=256" as an assembler symbol, describe as:

>asrl -define=sample=256 -dev=dr5f100pj.dvf main.asm