Routines |
Prev: 43227 | Up: Map | Next: 43256 |
Used by the routines at 40258 and Animation_ThrowingDart.
|
||||
|
||||
Sounds_OpponentDart | 43242 | SUB A | A=0. | |
43243 | LD C,150 | C=150. | ||
Sounds_OpponentDart_OuterLoop | 43245 | LD B,C | Copy the delay into B as a counter. | |
Sounds_OpponentDart_DelayLoop | 43246 | DJNZ Sounds_OpponentDart_DelayLoop | Decrease the delay loop counter by one and loop back to Sounds_OpponentDart_DelayLoop until the counter is zero. | |
43248 | XOR %00010000 | Flip the current speaker state. | ||
43250 | OUT (254),A | Send it to the speaker. | ||
43252 | INC C | Increment C by one. | ||
43253 | JR NZ,Sounds_OpponentDart_OuterLoop | Jump back to Sounds_OpponentDart_OuterLoop until C is zero. | ||
43255 | RET | Return. |
Prev: 43227 | Up: Map | Next: 43256 |