Mnemonic Field; Operand Field; Comment Field; Index - Epson S1C62 Family Reference Manual

Cmos 4-bit single chip microcomputer development tool
Table of Contents

Advertisement

Mnemonic field

4.2.2
The mnemonic field is used for an instruction mnemonic or a pseudo-instruction.

Operand field

4.2.3
The operand field is used for the operands of the instruction. The form of each operand and the number of
operands depend on the kind of instruction. The form of expressions specifying values must be one of the
following:
• A numeric constant, a character constant, or a symbol that defines a constant
• A label indicating a memory address
• An operational expression for obtaining the specified value
If the operand consists of two or more expressions, the expressions must be separated by commas ",".

Comment field

4.2.4
The comment field is used for comment data such as program headers and descriptions of processing. The
contents of this field do not affect assembly or the object files generated by assembly.
The part of the statement from a semicolon ";" to the CR code at the end of the statement is considered to be
the comment field. Statements consisting of only a comment field are also allowed. When a comment
spans multiple lines, a semicolon must be written at the beginning of each line.

4.3 Index

ASM62XX allows values to be referenced by their indexes.
Refer to Section 4.2.1, "Label field", for the restrictions on index descriptions.

Label

4.3.1
A label is an index for referencing a location in the program, and can be used as an operand that specifies a
memory address as immediate data in an instruction. For example, a label can be used as the operand of
an instruction such as JP by writing the label in the branch-destination statement.
The name written in the label field of an EQU or SET instruction is considered to be a symbol, not a label.
Example:
LABEL1:
A label can be assigned to any statement, but the label assigned to the following pseudo-instructions is
ignored:
ORG, BANK, PAGE, SECTION, END, LABEL, ENDM
Note When selecting the auto-page-set function (see Section 3.2), a statement consisting of only a label
must be written immediately before the JP or CALL instructions.
Example:
PGSET:
S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
:
JP
NZ,LABEL1
:
:
LD
A,0
JP
LABEL
EPSON
CROSS ASSEMBLER ASM62XX
III-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c62 series

Table of Contents