Epson S1C62 Family Computer Hardware User Manual


 
MELODY ASSEMBLER MLA628X
IV-6 EPSON S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
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> Sets location counter
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.
Table 5.2.1 Tempo setting
.TEMPC0
.TEMPC0=n Sets TEMPC0 (n = 0–15)
The TEMPC0 option is set by specifying n as an integer in the range 0 to 15.
This setting cannot be omitted.
30
32
34.3
36.9
40
43.6
48
53.3
.TEMPC0 = 0
.TEMPC1 = 0
.TEMPC0 = 1
.TEMPC1 = 1
.TEMPC0 = 2
.TEMPC1 = 2
.TEMPC0 = 3
.TEMPC1 = 3
.TEMPC0 = 4
.TEMPC1 = 4
.TEMPC0 = 5
.TEMPC1 = 5
.TEMPC0 = 6
.TEMPC1 = 6
.TEMPC0 = 7
.TEMPC1 = 7
60
68.6
80
96
120
160
240
480
.TEMPC0 = 8
.TEMPC1 = 8
.TEMPC0 = 9
.TEMPC1 = 9
.TEMPC0 = 10
.TEMPC1 = 10
.TEMPC0 = 11
.TEMPC1 = 11
.TEMPC0 = 12
.TEMPC1 = 12
.TEMPC0 = 13
.TEMPC1 = 13
.TEMPC0 = 14
.TEMPC1 = 14
.TEMPC0 = 15
.TEMPC1 = 15
Tempo
symbol
Tempo
symbol
Option-setting
pseudo-instruction
Option-setting
pseudo-instruction