Prev: 63478 Up: Map Next: 63543
63501: Controller: Animal Sounds
Used by the routine at Handler_Interrupts.
Controller_AnimalSounds 63501 LD A,(65535) Return if *SoundFlag_Animal is "off" (0).
63504 CP 0
63506 RET Z
63507 CP 2 Jump to SoundHandler_BirdSound if *SoundFlag_Animal is equal to 2.
63509 JP Z,SoundHandler_BirdSound
Else, generate the "rat" sound.
63512 LD A,(65160) A=*InterruptCounter.
63515 AND %00000111 Keep only bits 0-2.
63517 JR NZ,AnimalSounds_HouseKeeping Jump to AnimalSounds_HouseKeeping if the result is not zero.
63519 PUSH BC Stash BC, DE and HL on the stack.
63520 PUSH DE
63521 PUSH HL
63522 LD BC,50 BC=0050.
63525 LD DE,60 DE=0060.
63528 CALL PlayWave1 Call PlayWave1.
63531 POP HL Restore HL, DE and BC from the stack.
63532 POP DE
63533 POP BC
This entry point is used by the routine at SoundHandler_BirdSound.
AnimalSounds_HouseKeeping 63534 POP AF Restore AF and AF from the stack.
63535 POP AF
63536 CALL 56 Call MASK_INT.
63539 POP IY Restore IY from the stack.
63541 EI Enable interrupts.
63542 RET Return.
Prev: 63478 Up: Map Next: 63543