Prev: C3E0 Up: Map Next: C400
C3F4: Play Sweep Sound
Used by the routine at ThrowItem.
Plays a sequence of thirty-two tones.
Input
B Starting pitch
PlaySweepSound C3F4 LD C,$20 Set the number of tones to play to 20.
PlaySweepSound_Loop C3F6 LD A,C Subtract the starting pitch from the number of tones left to work out the pitch of the next tone, play it, and loop back until all 20 tones have been played.
C3F7 SUB B
C3F8 LD B,A
C3F9 CALL PlaySquareWave
C3FC DEC C
C3FD JR NZ,PlaySweepSound_Loop
C3FF RET Return.
View the equivalent code in;
Prev: C3E0 Up: Map Next: C400