Prev: 71E0 Up: Map Next: 71FE
71F0: Play Arrival Sound
Used by the routine at FinishScrollIn.
Plays the sound that goes with the end of the scroll at the start of a life, which is a rising sweep of 20 beeps. The entry point at PlaySweep makes the beeps for any sweep.
PlayArrivalSound 71F0 LD C,$20 The arrival sweep has 20 beeps.
71F2 LD D,$70 The lowest beep has half-period 70.
This entry point is used by the routines at PlayPickUpSound, PlayChangeSound, PlayMovingSound and PlayRemovalSound.
PlaySweep 71F4 LD A,C The pitch starts at the number of beeps left.
71F5 ADD A,D Add the base pitch.
71F6 LD B,A That is the half-period of this beep.
71F7 CALL PlaySquareWave Call PlaySquareWave.
71FA DEC C One beep of the sweep has been played.
71FB JR NZ,PlaySweep Jump to PlaySweep if the zero flag is clear.
71FD RET Return.
Prev: 71E0 Up: Map Next: 71FE