| Deathchase | Routines |
| Prev: 66DB | Up: Map | Next: 6711 |
|
Used by the routine at 663D.
|
||||
| 66FD | LD B,$05 | Check 5 centre places | ||
| 66FF | LD HL,$5DDF | Get the handlebar positions | ||
| 6702 | LD A,$8E | Offset to $8D, $8E or $8F depending on where facing | ||
| 6704 | ADD A,(HL) | |||
| 6705 | LD L,A | |||
| 6706 | LD H,$7F | |||
| 6708 | LD A,$00 | Point to the front row of trees | ||
| 670A | CP (HL) | Is there a tree here? | ||
| 670B | JR NZ,$6711 | Yes, we're in trouble! | ||
| 670D | INC HL | Move to next point | ||
| 670E | DJNZ $670A | |||
| 6710 | RET | No collision, move on | ||
| Prev: 66DB | Up: Map | Next: 6711 |