Prev: 40746 Up: Map Next: 40768
40753: Play Falling Sweep
Used by the routine at FollowPath.
Plays a sweep of 63 clicks which get longer, so the pitch falls.
PlayFallingSweep 40753 LD C,63 Set the number of clicks to 63.
PlayFallingSweep_Click 40755 LD A,C Fetch the number of clicks left.
40756 XOR %00111111 Flip bits 0-5, to count upwards.
40758 ADD A,16 Add 16.
40760 LD B,A Use it as the length of the click.
40761 CALL PlayClick Play a click.
40764 DEC C Decrease the number of clicks by one.
40765 JR NZ,PlayFallingSweep_Click Jump back until they have all been played.
40767 RET Return.
Prev: 40746 Up: Map Next: 40768