Prev: 47322 Up: Map Next: 47346
47336: Play Repeated Tone
Call PlaySquareWave, using B as the repeat count.
Input
B Repeat count
C Pitch
Play PlaySquareWave using B as the repeat count.
PlayRepeatedTone 47336 LD D,B Copy B into the repeat count.
47337 PUSH BC Stash BC on the stack.
PlayRepeatedTone_Loop 47338 CALL PlaySquareWave Call PlaySquareWave.
47341 DEC D Decrease the repeat count by one.
47342 JR NZ,PlayRepeatedTone_Loop Jump back to PlayRepeatedTone_Loop until it is zero.
47344 POP BC Restore BC from the stack.
47345 RET Return.
Prev: 47322 Up: Map Next: 47346