Chapter 5 Using Assembler

5.2Starting Assembler

The assembler is started by entering the command name and the desired parameters. The command name differs depending on the device being used. This chapter uses the terminology of as103 as its general format.

General format of commands

Below is the general format of the command to use when starting the assembler.

as103 [options] source_filename

Contents of brackets [ ] may be omitted.

Specifying options

An option starts with a hyphen (-) as the options specifier, followed by a character that indicate the particular option.

-l

Option specifications are case sensitive, so upper case and lower case letters must be specified correctly.

-Lc

Single-character options not accompanied by parameters can be specified as multiple characters following the hyphen (-) option specifier. The order is optional.

-gl

When an option is accompanied by a parameter and other options are to follow, add a space after the parameter, and follow with the hyphen (-) option specifier.

-I/user/source -Li -Lc

Parameters can be specified right after the option character or separated by one space.

-I/user/source or -I /user/source

When options are omitted, assembly will be perform in accordance with the default interpretations built in to the assembler. Refer to section 5.3, "Command Options", for default interpretations.

NOTE:

Omitting the path specifies that the source file is in the current directory.

 

 

Specifying a path for the source file does not affect the listing file and relocatable

 

 

object file. They are always created in the current directory. Note, however, that

 

 

the -o option is available for creating the relocatable object file in another

 

 

directory.

 

 

 

Starting Assembler 61

Page 73
Image 73
Panasonic MN1030 user manual Starting Assembler, General format of commands, Specifying options