![]() |
Routines |
| Prev: F78C | Up: Map | Next: F7C2 |
|
Used by the routine at Controller_GeneralSounds.
|
||||
| SoundHandler_TouchedAnimal | F7A4 | PUSH BC | Stash BC and DE on the stack. | |
| F7A5 | PUSH DE | |||
| F7A6 | LD B,$0A | B=0A. | ||
| SoundHandler_TouchedAnimal_0 | F7A8 | PUSH BC | Stash BC on the stack. | |
| F7A9 | LD BC,$0064 | BC=0064. | ||
| F7AC | LD DE,$0032 | DE=0032. | ||
| F7AF | CALL PlayWave2 | Call PlayWave2. | ||
| F7B2 | POP BC | Restore BC from the stack. | ||
| F7B3 | DJNZ SoundHandler_TouchedAnimal_0 | Decrease counter by one and loop back to SoundHandler_TouchedAnimal_0 until counter is zero. | ||
| F7B5 | POP DE | Restore DE, BC and AF from the stack. | ||
| F7B6 | POP BC | |||
| F7B7 | POP AF | |||
|
The sound has now been played, so turn off the flag.
|
||||
| F7B8 | LD A,$00 | Write 00 to *SoundFlag_General. | ||
| F7BA | LD ($FFFE),A | |||
| F7BD | POP AF | Restore AF from the stack. | ||
| F7BE | POP IY | Restore IY from the stack. | ||
| F7C0 | EI | Enable interrupts. | ||
| F7C1 | RET | Return. | ||
| Prev: F78C | Up: Map | Next: F7C2 |