![]() |
Routines |
| Prev: F80D | Up: Map | Next: F855 |
|
Used by the routine at Controller_AnimalSounds.
|
||||
| SoundHandler_BirdSound | F837 | LD A,($FE88) | A=*InterruptCounter. | |
| F83A | AND %00001111 | Keep only bits 0-3. | ||
| F83C | JP NZ,AnimalSounds_HouseKeeping | Jump to AnimalSounds_HouseKeeping if the result is not zero. | ||
| F83F | PUSH BC | Stash BC and DE on the stack. | ||
| F840 | PUSH DE | |||
| F841 | LD DE,$000A | DE=000A. | ||
| F844 | LD BC,$000A | BC=000A. | ||
| F847 | CALL PlayWave1 | Call PlayWave1. | ||
| F84A | POP DE | Restore DE, BC, AF and AF from the stack. | ||
| F84B | POP BC | |||
| F84C | POP AF | |||
| F84D | POP AF | |||
| F84E | CALL $0038 | Call MASK_INT. | ||
| F851 | POP IY | Restore IY from the stack. | ||
| F853 | EI | Enable interrupts. | ||
| F854 | RET | Return. | ||
| Prev: F80D | Up: Map | Next: F855 |