Prev: B604 Up: Map Next: B62C
B619: Play Bump Sound
Plays a burst of noise, using the bytes at START as the pitches of beeps. It is the sound of one object bumping into another.
Play four bursts of three beeps.
PlayBumpSound B619 LD HL,$0000 Point HL at START.
B61C LD E,$04 Set a counter of four bursts.
PlayBumpSound_NextBurst B61E LD C,$03 Set the number of beeps to 03.
B620 LD A,(HL) Fetch a byte of the ROM.
B621 INC HL Move on.
B622 OR %11000000 Set bits 6 and 7.
B624 LD B,A Keep the pitch in B.
B625 CALL PlayWaveSequence Call PlayWaveSequence.
B628 DEC E Count down the bursts.
B629 JR NZ,PlayBumpSound_NextBurst Jump to PlayBumpSound_NextBurst until all of them have been played.
B62B RET Return.
View the equivalent code in;
Prev: B604 Up: Map Next: B62C