Prev: 611B Up: Map Next: 6158
614B: Play square wave sound
Used by the routines at SoundsBounce, SoundsCupRefuel and SoundsEngine.
Input
D Duration of wave
PlaySquareWave 614B CALL PlaySound Call PlaySound.
614E LD B,D B=D.
PlaySquareWave_Loop_1 614F DJNZ PlaySquareWave_Loop_1 Decrease counter by one and loop back to PlaySquareWave_Loop_1 until counter is zero.
6151 CALL PlaySound Call PlaySound.
6154 LD B,D B=D.
PlaySquareWave_Loop_2 6155 DJNZ PlaySquareWave_Loop_2 Decrease counter by one and loop back to PlaySquareWave_Loop_2 until counter is zero.
6157 RET Return.
Prev: 611B Up: Map Next: 6158