Prev: EC5A Up: Map Next: EC7B
EC69: Make a sound effect
Used by the routines at 64BD, 77D3, 790D, EC7B, ECE1, FADA and FB52. Makes the sound effect that is used when 'M' is pressed to toggle the message speed, and also by Sam when he is walking, finishes a roll or somersault, picks up the hook or budgie, picks up a telephone, is dialling a telephone number, hangs up a phone, changes disguise, lowers his arm, knocks on a door, blows a fuse, flips a light switch, raises or lowers a window blind, throws the hook, or is falling from the roof of a building.
EC69 PUSH BC
EC6A LD A,$01 BORDER 1 (blue)
EC6C LD C,$07 Initialise the duration counter
EC6E XOR $10 Flip bit 4 (the speaker bit)
EC70 OUT ($FE),A Change the speaker state
EC72 LD B,$C0 Perform the pitch delay
EC74 DJNZ $EC74
EC76 DEC C Have we finished the sound effect yet?
EC77 JR NZ,$EC6E Jump back if not
EC79 POP BC
EC7A RET
Prev: EC5A Up: Map Next: EC7B