Prev: 39453 Up: Map Next: 39528
39484: Handler: Destructable Enemies
Used by the routine at 39453.
HandlerDestructableEnemies 39484 LD A,(38581) If GameDelayTimer is not zero, return.
39487 AND A
39488 RET NZ
39489 LD A,(38577) If 38577 is zero, jump to HandlerDestructableEnemies_0.
39492 AND A
39493 JR Z,HandlerDestructableEnemies_0
39495 DEC A Decrease A by one.
39496 LD (38577),A Write the value back to 38577.
39499 RET Return.
HandlerDestructableEnemies_0 39500 LD A,(38658) A=ImmortalData.
39503 SUB 16
39505 CP 32
39507 RET NC
39508 LD IX,38802 IX=NastieData.
39512 LD DE,12 DE=0012.
39515 LD B,6 B=6 (counter).
HandlerDestructableEnemies_1 39517 LD A,(IX+0) A=IX+0 (sprite reference).
39520 AND A If A is zero, jump to 39528.
39521 JR Z,39528
39523 ADD IX,DE IX=IX+DE.
39525 DJNZ HandlerDestructableEnemies_1 Decrease counter by one and loop back to HandlerDestructableEnemies_1 until counter is zero.
39527 RET Return.
Prev: 39453 Up: Map Next: 39528