Prev: 71F0 Up: Map Next: 71FE
71F4: Sound a sweep of C cycles
Used by the routines at sound_pick_up, sound_ship_colour, sound_hum and sound_collect.
The general sweep, entered from sound_rising_whine, sound_pick_up, sound_ship_colour, sound_hum and sound_collect: C cycles, each of half period C + D, C counting down, so the note rises.
Input
C Number of cycles, and the part of the period that shrinks
D The fixed part of the period
rising_sweep 71F4 LD A,C Half period C + D
71F5 ADD A,D
71F6 LD B,A
71F7 CALL beep_cycle One cycle (beep_cycle); next C
71FA DEC C
71FB JR NZ,rising_sweep
71FD RET
Prev: 71F0 Up: Map Next: 71FE