Prev: 88A7 Up: Map Next: 88D4
88BE: Enemy movement: Called with random probability.
Used by the routine at L8878.
L88BE 88BE RST $20 Random number
88BF AND $07 0 - 7
88C1 LD HL,enemy_movement_table Table base address
88C4 RST $08 Add A to HL
88C5 LD A,(HL) Get table value
88C6 LD (IX+$03),A Set counter
88C9 CP $40 Compare to $40
88CB JR C,L8878_0 If < $40 then jump to move towards ship
88CD JR NZ,L88D4 If > $40 then jump ahead
This entry point is used by the routine at L8878.
L88BE_0 88CF LD (IX+$07),$10 Set flags
88D3 RET Return to return_from_sprite_handler
Prev: 88A7 Up: Map Next: 88D4