![]() |
Routines |
Prev: 63000 | Up: Map | Next: 63084 |
|
||||||||||
PlayWave1 | 63048 | PUSH BC | Stash the delay counter on the stack. | |||||||
63049 | LD A,(23504) | Send *Active_BorderColour to the speaker port. | ||||||||
63052 | LD BC,65534 | |||||||||
63055 | OUT (C),A | |||||||||
63057 | POP BC | Restore the delay counter from the stack. | ||||||||
63058 | PUSH BC | Stash the delay counter on the stack. | ||||||||
63059 | CALL Delay_Loop | Call Delay_Loop. | ||||||||
63062 | LD A,(23504) | A=*Active_BorderColour. | ||||||||
63065 | LD BC,65534 | BC=65534 (C points to the speaker port). | ||||||||
63068 | OR %00010000 | Turn on the speaker (set bit 4). | ||||||||
63070 | OUT (C),A | Send A to port *C. | ||||||||
63072 | POP BC | Restore the delay counter from the stack. | ||||||||
63073 | PUSH BC | Stash the delay counter on the stack. | ||||||||
63074 | CALL Delay_Loop | Call Delay_Loop. | ||||||||
63077 | POP BC | Restore the delay counter from the stack. | ||||||||
63078 | DEC DE | Decrease the duration counter by one. | ||||||||
63079 | LD A,E | Keep looping back to PlayWave1 until the duration counter is zero. | ||||||||
63080 | OR D | |||||||||
63081 | JR NZ,PlayWave1 | |||||||||
63083 | RET | Return. |
Prev: 63000 | Up: Map | Next: 63084 |