| Gyruss | Routines |
| Prev: 9B99 | Up: Map | Next: 9BF8 |
|
Used by the routine at sound_player.
|
||||
| L9BD9 | 9BD9 | JP P,L9BF8 | If > 0 then jump ahead to loop | |
| 9BDC | AND $7F | Negative - clear sign | ||
| 9BDE | JR Z,L9BD9_0 | If byte was $80, jump ahead | ||
| 9BE0 | LD E,A | Save value | ||
| 9BE1 | LD A,(tune_index) | Get tune playing | ||
| 9BE4 | CP $05 | If not 5 | ||
| 9BE6 | JR NZ,sound_player_1 | Then jump back into sound_player | ||
| 9BE8 | LD A,E | Restore value | ||
| 9BE9 | DEC A | Decrement value | ||
| 9BEA | JR Z,L9BD9_0 | If it was 1 then skip ahead | ||
| 9BEC | DEC (IX+$07) | Decrement countdown | ||
| 9BEF | JR Z,sound_player_1 | If zero then jump back into sound_player | ||
| L9BD9_0 | 9BF1 | ADD A,$06 | Add 6 to get tune index | |
| 9BF3 | CALL play_tune | Play tune | ||
| 9BF6 | JR sound_player_0 | |||
| Prev: 9B99 | Up: Map | Next: 9BF8 |