Prev: C463 Up: Map Next: C481
C471: One wave
Used by the routines at BUMP_SOUND, FIRE_SOUND and ARRIVE_SOUND.
Speaker bit on for B turns of a 13 T-state loop, then off for as long, with the border black throughout. The same routine as Knight Lore's, Alien 8's and Pentagram's.
Input
B the half-wave count, kept
CLICK C471 LD A,$10 speaker on; wait
C473 OUT ($FE),A
C475 LD A,B
CLICK_0 C476 DJNZ CLICK_0
C478 LD B,A
C479 XOR A speaker off; wait; B back
C47A OUT ($FE),A
C47C LD A,B
CLICK_1 C47D DJNZ CLICK_1
C47F LD B,A
C480 RET
Prev: C463 Up: Map Next: C481