Pseudo-Instructions; Address-Setting Pseudo-Instruction; Option-Setting Pseudo-Instructions - Epson S1C62 Family Reference Manual

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

Advertisement

MELODY ASSEMBLER MLA628X

5 PSEUDO-INSTRUCTIONS

The pseudo-instruction is for the assembler, and cannot be executed by the melody data after
development.
In the explanations below, the symbols "<" and ">" used in the pseudo-instruction format indicate the
contents of the statement. These symbols are not actually written. "_" indicates one or more spaces or tabs.
The symbol, constant, arithmetic expression and so forth is written in "<expression>".

5.1 Address-Setting Pseudo-Instruction

ORG (ORIGIN)
ORG_<Expression>
The ORG instruction sets the value of <expression> in the location counter.
If the ORG instruction does not head the source file, the location counter is set to 0 and assembly is
performed. The ORG instruction can be used in multiple places in the program. However, it cannot be
set in a location ahead of the current location counter, otherwise all the statements will be invalid until
the next correct setting is performed, and "!" (Warning) is displayed.
When a value exceeding the ROM capacity is specified, an R error results.

5.2 Option-Setting Pseudo-Instructions

Tempo selection
The 2 types of tempo may be selected from
among 16 types by using the option-setting
pseudo-instructions (".TEMPC0 = n") and
(".TEMPC1 = n").
The option-setting pseudo-instructions and
the corresponding tempo generated are
shown in Table 5.2.1.
The 2 types of tempo for TEMPC0 and
TEMPC1 are selected by specifying n.
The proper use of the 2 types of tempo
selected is specified through the software.
The 2 types of tempo which may selected
are: TEMPC0 to be played when "0" is
written on the TEMPC register (address:
F2H, data bit: D1) and the TEMPC1 to be
played when "1" is written on the said
register.
.TEMPC0
.TEMPC0=n
The TEMPC0 option is set by specifying n as an integer in the range 0 to 15.
This setting cannot be omitted.
IV-6
Sets location counter
Table 5.2.1 Tempo setting
Tempo
Option-setting
symbol
pseudo-instruction
30
.TEMPC0 = 0
.TEMPC1 = 0
32
.TEMPC0 = 1
.TEMPC1 = 1
34.3
.TEMPC0 = 2
.TEMPC1 = 2
36.9
.TEMPC0 = 3
.TEMPC1 = 3
40
.TEMPC0 = 4
.TEMPC1 = 4
43.6
.TEMPC0 = 5
.TEMPC1 = 5
48
.TEMPC0 = 6
.TEMPC1 = 6
53.3
.TEMPC0 = 7
.TEMPC1 = 7
Sets TEMPC0 (n = 0–15)
EPSON
DEVELOPMENT TOOL REFERENCE MANUAL
Tempo
Option-setting
symbol
pseudo-instruction
60
.TEMPC0 = 8
.TEMPC1 = 8
68.6
.TEMPC0 = 9
.TEMPC1 = 9
80
.TEMPC0 = 10
.TEMPC1 = 10
96
.TEMPC0 = 11
.TEMPC1 = 11
120
.TEMPC0 = 12
.TEMPC1 = 12
160
.TEMPC0 = 13
.TEMPC1 = 13
240
.TEMPC0 = 14
.TEMPC1 = 14
480
.TEMPC0 = 15
.TEMPC1 = 15
S1C62 FAMILY

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c62 series

Table of Contents