Prev: 9F31 Up: Map Next: 9F4E
9F40: Play Short Rising Sweep
Used by the routine at RunFrame.
Plays a sweep of 09 clicks which get shorter, so the pitch rises.
PlayShortRisingSweep 9F40 LD BC,$8009 Set the length of the first click to 80 and the number of clicks to 09.
PlayShortRisingSweep_Click 9F43 CALL PlayClick Play a click.
9F46 LD A,B Fetch the length.
9F47 SUB $06 Subtract 06.
9F49 LD B,A Store it.
9F4A DEC C Decrease the number of clicks by one.
9F4B JR NZ,PlayShortRisingSweep_Click Jump back until they have all been played.
9F4D RET Return.
Prev: 9F31 Up: Map Next: 9F4E