Prev: 724C Up: Map Next: 725C
724E: Sound a falling zap of C cycles
Used by the routine at sound_death.
Entered from sound_zap (16 cycles) and sound_death (7). Each cycle has half period (NOT (4 x C)) AND $7F as C counts down, so the note falls.
Input
C Number of cycles
zap_sweep 724E LD A,C Half period (NOT 4C) AND $7F; next C
724F ADD A,A
7250 ADD A,A
7251 CPL
7252 AND $7F
7254 LD B,A
7255 CALL beep_cycle
7258 DEC C
7259 JR NZ,zap_sweep
725B RET
Prev: 724C Up: Map Next: 725C