Prev: 64738 Up: Map Next: 64754
64740: Make a sound effect
Used by the routines at 30053 (to make the cash bonus/key sound effect) and 64618 (to make the sound effect for when Sam hits the ground after being dropped by a gangster).
Input
A Border colour
C Pitch
DE Duration
64740 XOR 16 Flip bit 4 of A (the speaker bit)
64742 OUT (254),A Set the border colour and change the speaker state
64744 LD B,C Perform the pitch delay
64745 DJNZ 64745
64747 DEC E Jump back until the sound effect is finished
64748 JR NZ,64740
64750 DEC D
64751 JR NZ,64740
64753 RET
Prev: 64738 Up: Map Next: 64754