Professional Documents
Culture Documents
by ZW4
sound fix.
Mail: zw4@geocities.co.jp
Date: 980905
by nori
English translation and sound stuff fix.
mail: fammaster@mail.goo.ne.jp
date: 2000/3/22
Note:
clock_counter is incremented by clock, when clock_counter reach $5000=$5800=0xff,
IRQ occur.
Then, to reset irq signal, $5800(or $5000) values have to change, $5000=$5800 !=
0xff.
And, clock_counter's value can check by reading $5000/5800.
<$4800,$F800's instruction>
$4800 Expand I/O Data Register
$F800 Expand I/O Address Register
bit Iaaaaaaa
aaaaaaa: Address
I: Auto Increment Enable/Disable 1:Enable 0:Disable
I=1, if $4800 is accessed (read/write), Address is automatically incremented.
ExtI/O Adr. :
$00-$3f: Wave data
offset register($46) : #$20 (wave data is started from $10, lower bit)
wavedata length($44) : ----11-- ( (8-3)*4=20 samples. )
output wave
F --
E -- --
D -- --
C -- --
B -- --
A --
9 --
8 --
7 --
6 --
5 --
4 --
3 --
2 --
1 --
0---------------------------------------->
> volume
bit ????VVVV
V: volume (15:maximum �` 0:minimum)
?: unknown
<about frequency>
frequency is constructed 18bits in HHMMMMMMMMLLLLLLLL.
actual frecuency is
Freq * 440 * (2-F)
f = -------------------
15467
Freq: 18bits frequency data.
F : increse oct.