EasyManua.ls Logo

Sharp MZ-800 - Page 129

Sharp MZ-800
221 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
(ii)
<duration>
<duration>
specifies
in
units
of
1/100
seconds
the
length
of
the
tone
generat-
ed
by
this
statement.
<duration>
must
be
a
numeric
expression
from
0
to
65535.
The
SOUND
=
(<register>,<data>)
statement
is
used
to
directly
control
the
sound
generator
(Programmable
Sound
Generator)
LSI.
The
PSG
can
gener-
ate
three
tones
and
one
noise.
The
PSG
register
table
is
shown
below.
hiss
ra
Data
0
Tone
0
Frequency
Integer
from
1
to
2'°
1
1
Tone
0
Volume
Integer
from
0
to
15
(see
note)
2
Tone
|
Frequency
Same
as
register
0
3
Tone
1
Volume
Same
as
register
1
4
Tone
2
Frequency
Same
as
register
0
5
Tone
2
Volume
Same
as
register
|
6
Noise
Frequency
Noise
data
7
Noise
Volume
Same
as
register
1
The
PSG
can
generate
either
synchronous
or
white
noise.
The
type
of
noise
to
be
generated
can
be
specified
by
sending
1-byte
of
data
to
PSG
port $F2.
See
Appendix
B
for
control
of
PSG.
NOISE
Abbreviated
Format
NO.
<melody>
Format
NOISE
<melody>[,<melody>]...
6-72
+
.
{
x
<note
name>[<duration>]
Explanation
The
NOISE
statement
generates
white
noise
as
specified
by
the
<melody
n>
parameters.
The
meanings
of
the
<melody
n>
parameters
are
identical
to
those
of
the
MUSIC
statement.
This
statement
can
generate
two
parts
of
noises
simultaneously.
The
parameters
specifying
these
two
must
be
separated
by
a
semicolon
(;).
Any
two
consecutive
melo-
dies
must
be
separated
by
a
comma
(,).
10
NOISE
“C3D1"",""E3F1""
The
above
NOISE
statement
generates
two
parts
of
white
noises
simultaneously.

Other manuals for Sharp MZ-800

Related product manuals