![]() |
Routines |
| Prev: 46617 | Up: Map | Next: 46652 |
|
Used by the routine at HandleJump.
Plays the sound of the player jumping, which goes through a series of pitches.
|
||||
|
Play 32 beeps of falling pitch.
|
||||
| PlayJumpSound | 46636 | LD C,32 | Set the counter to 32. | |
| PlayJumpSound_NextBeep | 46638 | LD A,C | Copy the counter to A. | |
| 46639 | RRCA | Rotate it five times. | ||
| 46640 | RRCA | |||
| 46641 | RRCA | |||
| 46642 | RRCA | |||
| 46643 | RRCA | |||
| 46644 | LD B,A | Keep the pitch in B. | ||
| 46645 | CALL PlaySquareWave | Call PlaySquareWave. | ||
| 46648 | DEC C | Count down. | ||
| 46649 | JR NZ,PlayJumpSound_NextBeep | Jump to PlayJumpSound_NextBeep until all of the beeps have been played. | ||
| 46651 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 46617 | Up: Map | Next: 46652 |