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-InstructionORG (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

Tempo

Option-setting

Tempo

Option-setting

symbol

pseudo-instruction

symbol

pseudo-instruction

 

 

 

 

30

.TEMPC0 = 0

 

 

 

 

60

.TEMPC0 = 8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 0

 

 

 

 

 

.TEMPC1 = 8

 

 

 

 

32

.TEMPC0 = 1

 

 

 

 

68.6

.TEMPC0 = 9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 1

 

 

 

 

 

.TEMPC1 = 9

 

 

 

 

34.3

.TEMPC0 = 2

 

 

 

 

80

.TEMPC0 = 10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 2

 

 

 

 

 

.TEMPC1 = 10

 

 

 

 

36.9

.TEMPC0 = 3

 

 

 

 

96

.TEMPC0 = 11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 3

 

 

 

 

 

.TEMPC1 = 11

 

 

 

 

40

.TEMPC0 = 4

 

 

 

 

120

.TEMPC0 = 12

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 4

 

 

 

 

 

.TEMPC1 = 12

 

 

 

 

43.6

.TEMPC0 = 5

 

 

 

 

160

.TEMPC0 = 13

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 5

 

 

 

 

 

.TEMPC1 = 13

 

 

 

 

48

.TEMPC0 = 6

 

 

 

 

240

.TEMPC0 = 14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 6

 

 

 

 

 

.TEMPC1 = 14

 

 

 

 

53.3

.TEMPC0 = 7

 

 

 

 

480

.TEMPC0 = 15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.TEMPC1 = 7

 

 

 

 

 

.TEMPC1 = 15

.TEMPC0
.TEMPC0=nSets 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.

IV-6

EPSON

S1C62 FAMILY

 

 

DEVELOPMENT TOOL REFERENCE MANUAL