![]() |
Routines |
| Prev: EB95 | Up: Map | Next: EBE2 |
|
HL Pointer to data for this pattern.
|
||||
| EBC4 | LD A,(IY+$05) | Get the X co-ordinate. | ||
| EBC7 | SUB (HL) | Is the player near enough? | ||
| EBC8 | SUB $04 | |||
| EBCA | CP $F8 | |||
| EBCC | JR C,$EBDD | Jump forward if not. | ||
| EBCE | INC HL | Point to the Y co-ordinate. | ||
| EBCF | LD A,(IY+$0A) | Get the Y co-ordinate. | ||
| EBD2 | SUB (HL) | Is the player near enough? | ||
| EBD3 | SUB $04 | |||
| EBD5 | CP $F8 | |||
| EBD7 | JR C,$EBDE | Jump if not. | ||
| EBD9 | INC HL | Ensure HL points to the next pattern. | ||
| EBDA | JP $EACB | Carry on looking at other patterns. | ||
|
The player isn't near enough.
|
||||
| EBDD | INC HL | Ensure HL points to the next pattern. | ||
| EBDE | INC HL | |||
| EBDF | JP $EAE3 | Flag the pattern has having not matched. | ||
| Prev: EB95 | Up: Map | Next: EBE2 |