| Gyruss | Routines |
| Prev: 80E8 | Up: Map | Next: 8170 |
|
Used by the routine at main_loop.
|
||||
| died | 8139 | CALL stop_tune | Stop tune | |
| 813C | LD A,$03 | Play explosion sound | ||
| 813E | CALL call_play_sound | ... | ||
| 8141 | LD HL,status_flags | Reset main loop flag | ||
| 8144 | RES 6,(HL) | ... | ||
| 8146 | CALL $1FDC | READ_REGISTER | ||
| 8149 | CALL reset_enemy_sprite_types | Update sprite types $0F - $11 | ||
| 814C | CALL explode | Explosion | ||
| died_0 | 814F | LD A,(active_enemies) | Get active enemies | |
| 8152 | OR A | Is it zero? | ||
| 8153 | JR NZ,died_1 | If not then keep waiting | ||
| 8155 | LD A,(total_enemies) | Get total enemies | ||
| 8158 | LD HL,center_map_entries | Get center map entries | ||
| 815B | CP (HL) | Are all enemies in the center? | ||
| 815C | JR Z,lose_life | If so then jump to lose life | ||
| died_1 | 815E | HALT | Wait interrupt | |
| 815F | CALL display_stars | Display stars | ||
| 8162 | CALL process_sprites | Process sprites | ||
| 8165 | CALL create_or_display_mines | Create or display mines | ||
| 8168 | CALL display_center_enemies | Display center enemies | ||
| 816B | CALL next_frame_upl_sprites | Upload sprites | ||
| 816E | JR died_0 | Loop until clear | ||
| Prev: 80E8 | Up: Map | Next: 8170 |