Prev: 63084 Up: Map Next: 63157
63119: Play Wave #3
Input
BC Delay
DE Duration
PlayWave3 63119 PUSH BC Stash the delay counter on the stack twice.
63120 PUSH BC
63121 CALL Delay_Loop Call Delay_Loop.
63124 LD BC,65534 Send *Active_BorderColour to the speaker port.
63127 LD A,(23504)
63130 OUT (C),A
63132 POP BC Restore the delay counter from the stack.
63133 CALL Delay_Loop Call Delay_Loop.
63136 LD BC,(65534) BC=*65534 (C points to the speaker port).
63140 LD A,(23504) A=*Active_BorderColour.
63143 OR %00010000 Turn on the speaker (set bit 4).
63145 OUT (C),A Send A to the speaker port.
63147 POP BC Restore the delay counter from the stack.
63148 DEC BC Decrease the delay counter by three.
63149 DEC BC
63150 DEC BC
63151 DEC DE Decrease the duration counter by one.
63152 LD A,D Keep looping back to PlayWave3 until the duration counter is zero.
63153 OR E
63154 JR NZ,63119
63156 RET Return.
Prev: 63084 Up: Map Next: 63157