![]() |
Routines |
| Prev: 44834 | Up: Map | Next: 44867 |
|
Used by the routine at MakeShot.
Plays sixteen short tones, using the first sixteen bytes of the ROM as the length of each.
|
||||
|
Use the first sixteen bytes of the ROM as tone lengths.
|
||||
| PlayRumble | 44848 | LD HL,0 | Point HL at the start of the ROM. | |
| 44851 | LD E,16 | Set the number of tones. | ||
|
Play each tone.
|
||||
| PlayRumble_Loop | 44853 | LD A,(HL) | Fetch a byte of the ROM. | |
| 44854 | INC HL | Move on to the next byte. | ||
| 44855 | AND %01111111 | Keep the bottom seven bits. | ||
| 44857 | LD B,A | Use them as the length of a pulse. | ||
| 44858 | LD C,2 | Set the number of pulses. | ||
| 44860 | CALL PlayWaveSequence | Play the tone. | ||
| 44863 | DEC E | Count down the tones. | ||
| 44864 | JR NZ,PlayRumble_Loop | Loop back until all of the tones have been played. | ||
| 44866 | RET | Return. | ||
| Prev: 44834 | Up: Map | Next: 44867 |