Prev: A427 Up: Map Next: A445
A438: Sounds: Fireball
Used by the routine at ThrowFireball.
Plays 08 clicks, one straight after the other. The half period of each click is the counter flipped and rotated left once.
SoundsFireball A438 LD D,$08 D=08 (the counter).
SoundsFireball_Loop A43A LD A,D Fetch the click counter.
A43B CPL Flip the bits.
A43C RLCA Rotate left once.
A43D LD B,A Keep the half period in B.
A43E CALL SoundsClick Play a click with SoundsClick.
A441 DEC D Decrease the counter by one and loop back to SoundsFireball_Loop until all of the clicks have been played.
A442 JR NZ,SoundsFireball_Loop
A444 RET Return.
Prev: A427 Up: Map Next: A445