beautypg.com

3) scale field, 4) end bit field, 5) comment field – Epson S1C62 Family User Manual

Page 63: 6) fields and corresponding melody data

background image

MELODY ASSEMBLER MLA628X

S1C62 FAMILY

EPSON

IV-5

DEVELOPMENT TOOL REFERENCE MANUAL

(3) Scale field

The scale field can be filled in with any scale (C3 through C6#).
When inputting the scale data directly, prefix the data with "$". In this case, the input data range is 00H
through FDH.
Moreover, the rest may be selected by describes "RR" in the scale field.
The number of specifiable scales varies depending on the model.
(Refer to the "S5U1C62N8xD Manual".)

(4) End bit field

The instruction indicating the end of the melody is written in the end bit field. When "1" is written, the
melody finishes with the melody data of that address. Otherwise, write "0", or omit it altogether.

(5) Comment field

Any comment, such as the program index or processing details, can be written in the comment field,
with no affect on the object file created with the assembler.
The comment field is the area between the semicolon ";" and the CR code at the end of the line.
A line can be made up of a comment field alone. However, if the comment extends into two or more
lines, each line must be headed with a semicolon.

(6) Fields and corresponding melody data

* Melody data

MSB

3 bits

Number of bit is difference depending the model

LSB

1/0

0–8

0–X (Refer to the "S5U1C62N8xD Manual".)

1/0

Attack

Note

Scale address

End

data

data

data

data

• End data

Becomes "0" when "0" is entered or no entry is made; otherwise, "1".

• Scale address data

• Attack data

"0" or "1" written in the attack field becomes the attack data.

Scale

Scale Data

S7 S6 S5 S4 S3 S2 S1 S0

0 0 0 0 0 1 0 0 04

C3

0 0 0 1 0 0 1 0 12

C3#

0 0 1 0 0 0 0 0 20

D3

0 0 1 0 1 1 1 1 2F

D3#

0 0 1 1 1 0 1 1 3B

E3

0 1 0 0 0 1 0 0 44

F3

0 1 0 1 0 0 0 1 51

F3#

0 1 0 1 1 0 1 1 5B

G3

0 1 1 0 0 1 0 1 65

G3#

0 1 1 0 1 1 0 0 6C

A3

0 1 1 1 0 1 0 0 74

A3#

0 1 1 1 1 1 0 0 7C

B3

1 0 0 0 0 1 0 0 84

C4

1 0 0 0 1 1 0 1 8D

C4#

1 0 0 1 0 0 1 0 92

D4

1 0 0 1 1 0 0 0 98

D4#

1 0 0 1 1 1 1 0 9E

E4

1 0 1 0 0 1 0 0 A4

F4

1 0 1 0 1 0 1 1 AB

F4#

Hex.

Scale

Scale Data

S7 S6 S5 S4 S3 S2 S1 S0

1 0 1 1 0 0 0 1 B1

G4

1 0 1 1 0 1 0 1 B5

G4#

1 0 1 1 1 0 0 0 B8

A4

1 0 1 1 1 1 0 0 BC

A4#

1 1 0 0 0 0 0 0 C0

B4

1 1 0 0 0 1 0 0 C4

C5

1 1 0 0 1 0 0 0 C8

C5#

1 1 0 0 1 1 0 1 CD

D5

1 1 0 0 1 1 1 0 CE

D5#

1 1 0 1 0 0 1 1 D3

E5

1 1 0 1 0 1 0 0 D4

F5

1 1 0 1 1 0 0 1 D9

F5#

1 1 0 1 1 0 1 1 DB

G5

1 1 0 1 1 1 0 0 DC

G5#

1 1 0 1 1 1 1 0 DE

A5

1 1 1 0 0 0 0 0 E0

A5#

1 1 1 0 0 0 1 0 E2

B5

1 1 1 0 0 1 0 0 E4

C6

1 1 1 0 0 1 1 0 E6

C6#

Hex.

Note Data

Note

111

110

101

100

011

010

001

000

• Note data

Table 4.2.3
Correspondence between scale and scale data

The scale or scale data written in the scale
field is loaded into the scale ROM, and the
address of the loaded scale data becomes
the scale address data.

Table 4.2.4
Correspondence between notes and note data

The correspondence between notes and
note data are as follows.