Prev: B619 Up: Map Next: B63C
B62C: Play Jump Sound
Used by the routine at HandleJump.
Plays the sound of the player jumping, which goes through a series of pitches.
Play 20 beeps of falling pitch.
PlayJumpSound B62C LD C,$20 Set the counter to 20.
PlayJumpSound_NextBeep B62E LD A,C Copy the counter to A.
B62F RRCA Rotate it five times.
B630 RRCA
B631 RRCA
B632 RRCA
B633 RRCA
B634 LD B,A Keep the pitch in B.
B635 CALL PlaySquareWave Call PlaySquareWave.
B638 DEC C Count down.
B639 JR NZ,PlayJumpSound_NextBeep Jump to PlayJumpSound_NextBeep until all of the beeps have been played.
B63B RET Return.
View the equivalent code in;
Prev: B619 Up: Map Next: B63C