Routines |
Prev: B8D4 | Up: Map | Next: B8E8 |
Used by the routines at B52E, SoundsLaserBeam, SoundsLaserMissileHit, SoundsPickupItem, B8E8, B8F2, B8FF, B918 and PlayWaveSequence.
|
||||||||
PlaySquareWave | B8DA | LD B,C | Decrease duration by one and loop back to Silence_Loop until duration is zero. | |||||
Silence_Loop | B8DB | DJNZ Silence_Loop | ||||||
B8DD | LD A,$10 | A=10 (speaker on = bit 4). | ||||||
B8DF | OUT ($FE),A | |||||||
B8E1 | LD B,C | Decrease duration by one and loop back to PlaySquareWave_Loop until duration is zero. | ||||||
PlaySquareWave_Loop | B8E2 | DJNZ PlaySquareWave_Loop | ||||||
B8E4 | XOR A | Speaker off. | ||||||
B8E5 | OUT ($FE),A | |||||||
B8E7 | RET | Return. |
Prev: B8D4 | Up: Map | Next: B8E8 |