bell in mmd2.20
ZXNet echo conference «code.zx»
From Aleksandr Majorov → To Igor Krauklis 9 October 1998
Greetings, oh dearest Igor!
09/26/98 at 00:00 someone Igor Krauklis wrote 2 All on the topic 'bell in'
mmd2.20'.
IK> Who knows how to remove
IK> subject? Like, instead of a bell
IK> there is some sound, but not so loud.
Well, you can try turning the volume down ;-)
By the way, the simplest solution!
You can dig into the code...
look for this piece:
BELL_S PUSH HL: PUSH BC: PUSH DE
LD HL,BELL_DT: LD C,#FD: LD D,13
OU_BELL LD B,#FF: OUT (C),D
LD B,#BF: OUTI
DEC D: JP P,OU_BELL
POP DE: POP BC: POP HL
RET
BELL_DT DB 2,#87,0,16,16,16,#38,0,2,7,1,9,1,0
this nonsense throws data into the music player,
to all 14 registers.
Starting from the end!!!
In short, it goes like this:
Reg #00 0 channel frequency [A]
Reg #01 1 /
Reg #02 9 channel frequency [B]
Reg #03 1 /
Reg #04 7 channel frequency [C]
Reg #05 2 /
Reg #06 0 no noise
Reg #07 #38 produce sound without noise
Reg #08 16 all three channels: amplitude changes
Reg #09 16 | from the envelope generator
Reg #0A 16 /
Reg #0B 0 envelope cycle duration
Reg #0C 135 /
Reg #0D 2 envelope shape, like this:
\n
\n
__________
Well, I think you can figure it out on your own...
Look for this piece somewhere from 24500 to #A000I can't tell you the exact address...
Only a good bummer awaits you - mmdha is packed!
those. You'll have to search after downloading!
And if you want to save it in a modified form,
then you will get another bummer - SetUp will not be saved ;-)
In order for everything to work, mmdhu must be packaged
into one file and place the blocks in the right order...
Therefore, it is better to make the sound quieter!
Well that's it *MAS* with a sledgehammer