Epson S1C62 Family Computer Hardware User Manual


 
CROSS ASSEMBLER ASM62XX
S1C62 FAMILY EPSON III-7
DEVELOPMENT TOOL REFERENCE MANUAL
4.2.2 Mnemonic field
The mnemonic field is used for an instruction mnemonic or a pseudo-instruction.
4.2.3
Operand field
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 ",".
4.2.4
Comment field
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.
4.3.1
Label
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:
:
JP NZ,LABEL1
:
:
LABEL1: LD A,0
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:
JP LABEL