Prev: A8DB Up: Map Next: A8F8
A8EA: Sounds: Opponent Dart
Used by the routines at 9D42 and Animation_ThrowingDart.
Sounds_OpponentDart A8EA SUB A A=00.
A8EB LD C,$96 C=96.
Sounds_OpponentDart_OuterLoop A8ED LD B,C Copy the delay into B as a counter.
Sounds_OpponentDart_DelayLoop A8EE DJNZ Sounds_OpponentDart_DelayLoop Decrease the delay loop counter by one and loop back to Sounds_OpponentDart_DelayLoop until the counter is zero.
A8F0 XOR %00010000 Flip the current speaker state.
A8F2 OUT ($FE),A Send it to the speaker.
A8F4 INC C Increment C by one.
A8F5 JR NZ,Sounds_OpponentDart_OuterLoop Jump back to Sounds_OpponentDart_OuterLoop until C is zero.
A8F7 RET Return.
Prev: A8DB Up: Map Next: A8F8