CROSS ASSEMBLER ASM62XX

4 SOURCE FILE FORMAT

The source file contains the source program consisting of S1C62XXX instructions (mnemonics) and pseudo-instructions, and is produced using an editor such as EDLIN.

Refer to the "S1C6200/6200A Core CPU Manual" and the "S1C6xxx Technical Manual (Software)" for instruction sets.

4.1 Source File Name

A desired file name not exceeding seven characters in length can be assigned to each source file. The format must be as follows:

C2XXYYY.DAT

"YYY" of the "C2XXYYY.DAT" is an alphanumeric character string of up to three characters, and should be determined by referencing the device name specified by Seiko Epson. The file extension must be ".DAT".

4.2 Statements

Each source program statement must be written using the following format.

Basic format:

<Index>[:]

<Instruction>

<Expression> <; comment>

Example:

 

ON

 

EQU

1

 

 

 

 

 

 

 

ORG

 

100H

 

 

 

 

 

START:

 

JP

 

INIT

 

;To init.

 

 

 

 

 

 

 

 

 

 

 

 

 

Label

 

Mnemonic

 

Operand

 

Comment

 

 

field

 

field

 

field

 

field

A statement consists of four fields: label, mnemonic, operand, and comment. Up to 132 characters can be used for one statement. Fields must be delimited by one or more blanks or tabs.

The label and comment fields are optional. Blank lines consisting only of a carriage return (CR) code are also allowed.

Although each statement and field (excluding the label field) can begin at any desired column. The program becomes easier to understand if the heads of corresponding fields are aligned.

4.2.1Label field

The label field can contain a label for referencing the memory address, a symbol that defines a constant, or a macro name. This field can be omitted if the statement name is not required. The label field must begin at column 1 and satisfy the following conditions.

The length must not exceed 14 characters.

The same name as a mnemonic or register name must not be used.

The following alphanumeric characters can be used, but the first character must not be a digit: A to Z, a to z, 0 to 9, _ , ?

The uppercase and lowercase forms of a letter are equivalent.

??nnnn (n is a digit) cannot be used as a name.

A colon ":" can be used as a delimiter between a label field and the mnemonic field. If a colon is used, neither blanks nor tabs need to be written subsequently.

Statements consisting of only a label field are also allowed.

III-6

EPSON

S1C62 FAMILY

 

 

DEVELOPMENT TOOL REFERENCE MANUAL