Prev: 63372 Up: Map Next: 63426
63396: Sound Handler: Touched Animal
Used by the routine at Controller_GeneralSounds.
SoundHandler_TouchedAnimal 63396 PUSH BC Stash BC and DE on the stack.
63397 PUSH DE
63398 LD B,10 B=10.
SoundHandler_TouchedAnimal_0 63400 PUSH BC Stash BC on the stack.
63401 LD BC,100 BC=0100.
63404 LD DE,50 DE=0050.
63407 CALL PlayWave2 Call PlayWave2.
63410 POP BC Restore BC from the stack.
63411 DJNZ SoundHandler_TouchedAnimal_0 Decrease counter by one and loop back to SoundHandler_TouchedAnimal_0 until counter is zero.
63413 POP DE Restore DE, BC and AF from the stack.
63414 POP BC
63415 POP AF
The sound has now been played, so turn off the flag.
63416 LD A,0 Write 0 to *SoundFlag_General.
63418 LD (65534),A
63421 POP AF Restore AF from the stack.
63422 POP IY Restore IY from the stack.
63424 EI Enable interrupts.
63425 RET Return.
Prev: 63372 Up: Map Next: 63426