Prev: 64B8 Up: Map Next: 64D6
64C9: Play Smoke Sound
Used by the routine at CreateWeapon.
Plays 08 square waves of falling pitch.
PlaySmokeSound 64C9 LD C,$08 Set the wave counter in C to 08.
PlaySmokeSound_Loop 64CB LD A,C Fetch the wave counter.
64CC CPL Invert all of the bits in A.
64CD RLCA Rotate A left once.
64CE LD D,A Set the duration of the wave in D.
64CF CALL PlaySquareWave Call PlaySquareWave.
64D2 DEC C Decrease the wave counter by one.
64D3 JR NZ,PlaySmokeSound_Loop Loop back to PlaySmokeSound_Loop until all of the waves have been played.
64D5 RET Return.
Prev: 64B8 Up: Map Next: 64D6