Prev: 40753 Up: Map Next: 40782
40768: Play Short Rising Sweep
Used by the routine at RunFrame.
Plays a sweep of 9 clicks which get shorter, so the pitch rises.
PlayShortRisingSweep 40768 LD BC,32777 Set the length of the first click to 128 and the number of clicks to 9.
PlayShortRisingSweep_Click 40771 CALL PlayClick Play a click.
40774 LD A,B Fetch the length.
40775 SUB 6 Subtract 6.
40777 LD B,A Store it.
40778 DEC C Decrease the number of clicks by one.
40779 JR NZ,PlayShortRisingSweep_Click Jump back until they have all been played.
40781 RET Return.
Prev: 40753 Up: Map Next: 40782