![]() |
Routines |
| Prev: B419 | Up: Map | Next: B441 |
|
Plays four short bursts of a tone, whose pitches come from the first four bytes of the ROM, for a ball hitting the floor.
|
||||
|
Play four bursts of three beeps.
|
||||
| PlayBumpSound | B42E | LD HL,$0000 | Point HL at the start of the ROM. | |
| B431 | LD E,$04 | Set the number of bursts to play. | ||
| PlayBumpSound_NextBurst | B433 | LD C,$03 | Set the number of cycles of each burst. | |
| B435 | LD A,(HL) | Fetch the next byte of the ROM. | ||
| B436 | INC HL | Move on to the next one. | ||
| B437 | OR %11000000 | Make it a high pitch by setting its top two bits. | ||
| B439 | LD B,A | Set B to the pitch. | ||
| B43A | CALL PlayWaveSequence | Play the tone. | ||
| B43D | DEC E | Decrease the burst counter and loop back to PlayBumpSound_NextBurst until all of the bursts have been played. | ||
| B43E | JR NZ,PlayBumpSound_NextBurst | |||
| B440 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: B419 | Up: Map | Next: B441 |