beautypg.com

3 starting method – Epson S5U1C62000A User Manual

Page 61

background image

S5U1C62000A MANUAL

EPSON

49

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

5.3 Starting Method

General form of command line

as62 ^ [options] ^ []

^ denotes a space.

[ ] indicates the possibility to omit.

Source file name

In the command line, only one assembly source file can be specified at a time. Therefore, you will
have to process multiple files by executing the assembler the number of times equal to the number of
files to be processed.
A long file name supported in Windows and a path name can be specified. When including spaces in
the file name, enclose the file name with double quotation marks (").

Options

The assembler comes provided with five types of start-up options:

-d

Function: Definition of Define name

Explanation: • Works in the same manner as you describe "#define " at top of

the source. It is an option to control the conditional assembly at the start-up.

• One or more spaces are necessary between -d and the .
• To define two or more Define names, repeat the specification of "-d

name>".

-g

Function: Addition of debugging information

Explanation: • Creates an output file containing symbolic/source debugging information.

• Always specify this function when you perform symbolic/source debugging.

Default: If this option is not specified, no debugging information will be added to the

relocatable object file.

-o

Function: Specification of output path/file name

Explanation: • Specifies an output path/file name without extension or with an extension ".o".

If no extension is specified, ".o" will be supplemented at the end of the specified
output path/file name.

Default: The input file name is used for the output files.

-l

Function: Output of relocatable list file

Explanation: • Outputs a relocatable list file.

Default: If this option is not specified, no relocatable list file will be output.

-e

Function: Output of error file

Explanation: • Also delivers in a file (.err) the contents that are output by the

assembler via the Standard Output (stdout), such as error messages.

Default: If this option is not specified, no error file will be output.

When entering an option in the command line, you need to place one or more spaces before and after
the option. The options can be specified in any order. It is also possible to enter options after the
source file name.

Example:

c:\e0c62\bin\as62 -g -e -l -d TEST1 -d TEST2 test.s