Routines |
Prev: F7F6 | Up: Map | Next: F837 |
Used by the routine at Handler_Interrupts.
|
||||
Controller_AnimalSounds | F80D | LD A,($FFFF) | Return if *SoundFlag_Animal is "off" (00). | |
F810 | CP $00 | |||
F812 | RET Z | |||
F813 | CP $02 | Jump to SoundHandler_BirdSound if *SoundFlag_Animal is equal to 02. | ||
F815 | JP Z,SoundHandler_BirdSound | |||
Else, generate the "rat" sound.
|
||||
F818 | LD A,($FE88) | A=*InterruptCounter. | ||
F81B | AND %00000111 | Keep only bits 0-2. | ||
F81D | JR NZ,AnimalSounds_HouseKeeping | Jump to AnimalSounds_HouseKeeping if the result is not zero. | ||
F81F | PUSH BC | Stash BC, DE and HL on the stack. | ||
F820 | PUSH DE | |||
F821 | PUSH HL | |||
F822 | LD BC,$0032 | BC=0032. | ||
F825 | LD DE,$003C | DE=003C. | ||
F828 | CALL PlayWave1 | Call PlayWave1. | ||
F82B | POP HL | Restore HL, DE and BC from the stack. | ||
F82C | POP DE | |||
F82D | POP BC | |||
This entry point is used by the routine at SoundHandler_BirdSound.
|
||||
AnimalSounds_HouseKeeping | F82E | POP AF | Restore AF and AF from the stack. | |
F82F | POP AF | |||
F830 | CALL $0038 | Call MASK_INT. | ||
F833 | POP IY | Restore IY from the stack. | ||
F835 | EI | Enable interrupts. | ||
F836 | RET | Return. |
Prev: F7F6 | Up: Map | Next: F837 |