Prev: B8FF Up: Map Next: B922
B918: Play Inverted Tone
Play PlaySquareWave, invert the pitch, and repeat D times.
Input
C Pitch
D Number of times to repeat
Play PlaySquareWave, invert the pitch, and repeat D times.
PlayInvertedTone B918 CALL PlaySquareWave Call PlaySquareWave.
B91B LD A,C A=C.
B91C CPL Flip the bits.
B91D LD C,A C=A.
B91E DEC D Decrease D by one.
B91F JR NZ,PlayInvertedTone Jump to PlayInvertedTone until D is zero.
B921 RET Return.
Prev: B8FF Up: Map Next: B922