Prev: 24859 Up: Map Next: 24920
24907: Play square wave sound
Used by the routines at SoundsBounce, SoundsCupRefuel and SoundsEngine.
Input
D Duration of wave
PlaySquareWave 24907 CALL PlaySound Call PlaySound.
24910 LD B,D B=D.
PlaySquareWave_Loop_1 24911 DJNZ PlaySquareWave_Loop_1 Decrease counter by one and loop back to PlaySquareWave_Loop_1 until counter is zero.
24913 CALL PlaySound Call PlaySound.
24916 LD B,D B=D.
PlaySquareWave_Loop_2 24917 DJNZ PlaySquareWave_Loop_2 Decrease counter by one and loop back to PlaySquareWave_Loop_2 until counter is zero.
24919 RET Return.
Prev: 24859 Up: Map Next: 24920