![]() |
Routines |
| Prev: 6485 | Up: Map | Next: 64AA |
|
Used by the routine at CreateWeapon.
Plays 10 square waves, alternating between a high and a low pitch.
|
||||
| PlayRepellentSound | 649E | LD C,$10 | Set the wave counter in C to 10. | |
| PlayRepellentSound_Loop | 64A0 | LD A,C | Fetch the wave counter. | |
| 64A1 | RRCA | Rotate A right once. | ||
| 64A2 | LD D,A | Set the duration of the wave in D. | ||
| 64A3 | CALL PlaySquareWave | Call PlaySquareWave. | ||
| 64A6 | DEC C | Decrease the wave counter by one. | ||
| 64A7 | JR NZ,PlayRepellentSound_Loop | Loop back to PlayRepellentSound_Loop until all of the waves have been played. | ||
| 64A9 | RET | Return. | ||
| Prev: 6485 | Up: Map | Next: 64AA |