Prev: B785 Up: Map Next: B7BC
B7A8: Handler: Bomb
Used by the routines at B6EC and B785.
Input
IX Animation object
Animate the sprite.
Handler_Bomb B7A8 LD A,(IX+$00) A=IX+00.
B7AB INC A Increment A by one.
The bomb has four frames of animation.
B7AC AND %00000011 Keep only bits 0-1.
With sprite IDs beginning from EC ("Bomb: Frame 1").
B7AE ADD A,$EC A=A+EC.
B7B0 LD (IX+$00),A Write A back to IX+00.
B7B3 LD A,(IX+$07) A=IX+07.
B7B6 XOR %00000001
B7B8 LD (IX+$07),A Write A back to IX+07.
B7BB RET Return.
Prev: B785 Up: Map Next: B7BC