Deathchase | Routines |
Prev: 632A | Up: Map | Next: 6371 |
633A | LD A,($5DCB) | Is the enemy being blown up? | ||
633D | BIT 7,A | |||
633F | JR NZ,$6359 | Skip setup if so | ||
6341 | BIT 5,A | Should an enemy appear now? | ||
6343 | RET NZ | Return if not | ||
6344 | BIT 0,A | Is this a tank? | ||
6346 | JR NZ,$637C | No, it's a plane, move forward | ||
6348 | LD A,($5DCC) | Get frames until a bonus enemy should appear and decrement it | ||
634B | DEC A | |||
634C | JR NZ,$6355 | Move forward if it's not time yet | ||
634E | LD HL,$5DCB | |||
6351 | SET 0,(HL) | Set that a bonus enemy is on screen | ||
6353 | LD A,$32 | Reset number of frames before bonus enemy can appear again | ||
6355 | LD ($5DCC),A | |||
6358 | RET | |||
6359 | LD A,($5DCC) | Get number of frames before bonus enemy should appear | ||
635C | LD HL,$6443 | |||
635F | LD (HL),A | |||
6360 | DEC A | |||
6361 | LD ($5DCC),A | |||
6364 | RET NZ | |||
6365 | LD (HL),$07 | |||
6367 | LD A,$32 | |||
6369 | LD ($5DCC),A | |||
636C | LD A,$20 | |||
636E | LD ($5DCB),A |
Prev: 632A | Up: Map | Next: 6371 |