![]() |
Routines |
| Prev: 63048 | Up: Map | Next: 63119 |
|
Used by the routines at SoundHandler_CollectedKey, SoundHandler_CaughtByPirate, SoundHandler_BombExplosion, SoundHandler_TouchedAnimal and 63624.
|
||||||||||
| PlayWave2 | 63084 | PUSH BC | Stash the delay counter on the stack twice. | |||||||
| 63085 | PUSH BC | |||||||||
| 63086 | CALL Delay_Loop | Call Delay_Loop. | ||||||||
| 63089 | LD BC,65534 | Send *Active_BorderColour to the speaker port. | ||||||||
| 63092 | LD A,(23504) | |||||||||
| 63095 | OUT (C),A | |||||||||
| 63097 | POP BC | Restore the delay counter from the stack. | ||||||||
| 63098 | CALL Delay_Loop | Call Delay_Loop. | ||||||||
| 63101 | LD BC,65534 | BC=65534 (C points to the speaker port). | ||||||||
| 63104 | LD A,(23504) | A=*Active_BorderColour. | ||||||||
| 63107 | OR %00010000 | Turn on the speaker (set bit 4). | ||||||||
| 63109 | OUT (C),A | Send A to the speaker port. | ||||||||
| 63111 | POP BC | Restore the delay counter from the stack. | ||||||||
| 63112 | INC BC | Increment the delay counter by one. | ||||||||
| 63113 | DEC DE | Decrease the duration counter by one. | ||||||||
| 63114 | LD A,E | Keep looping back to PlayWave2 until the duration counter is zero. | ||||||||
| 63115 | OR D | |||||||||
| 63116 | JR NZ,PlayWave2 | |||||||||
| 63118 | RET | Return. | ||||||||
| Prev: 63048 | Up: Map | Next: 63119 |