Routines |
Prev: 49729 | Up: Map | Next: 49756 |
Used by the routines at Sounds_PlaySquareWave_Loop and 49763.
|
||||||||
Sounds_SquareWave | 49741 | LD B,E | B=E. | |||||
49742 | EI | Enable interrupts. | ||||||
Flip speaker on (set bit 4).
|
||||||||
49743 | LD A,%00010000 | A=16 (speaker on = bit 4). | ||||||
49745 | OUT (254),A | |||||||
Sounds_SquareWave_Loop | 49747 | DJNZ Sounds_SquareWave_Loop | Decrease counter by one and loop back to Sounds_SquareWave_Loop until counter is zero. | |||||
49749 | LD B,E | B=E. | ||||||
Flip speaker off (unset bit 4).
|
||||||||
49750 | XOR A | Speaker off. | ||||||
49751 | OUT (254),A | |||||||
SquareWave_Silence_Loop | 49753 | DJNZ SquareWave_Silence_Loop | Decrease counter by one and loop back to SquareWave_Silence_Loop until counter is zero. | |||||
49755 | RET | Return. |
Prev: 49729 | Up: Map | Next: 49756 |