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 (repeat the beep ten times).
SoundHandler_TouchedAnimal_RepeatLoop 63400 PUSH BC Stash the repeat count on the stack.
63401 LD BC,100 BC=0100 (delay).
63404 LD DE,50 DE=0050 (duration).
63407 CALL PlayWave2 Play wave #2 for one animal-hit beep.
63410 POP BC Restore BC from the stack.
63411 DJNZ SoundHandler_TouchedAnimal_RepeatLoop Decrease counter by one and loop back to SoundHandler_TouchedAnimal_RepeatLoop 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 and IY from the stack.
63422 POP IY
63424 EI Enable interrupts.
63425 RET Return.
Prev: 63372 Up: Map Next: 63426