Deathchase | Routines |
Prev: 6781 | Up: Map | Next: 6802 |
Used by the routine at 663D.
|
||||
67C6 | LD A,($5DEC) | Get the current speed | ||
67C9 | CP $00 | Are we "fast" | ||
67CB | JR NZ,$67EE | Move on if not | ||
67CD | LD A,($5DC6) | Get enemy bike 1 position | ||
67D0 | CP $20 | Should be between 0 - 1F | ||
67D2 | JR NC,$67FA | Move on if not | ||
67D4 | LD A,($5DD5) | Get distance to the bikes | ||
67D7 | DEC A | Decrease it | ||
67D8 | JR Z,$67DE | Jump forward if we are in range | ||
67DA | LD ($5DD5),A | Set new value | ||
67DD | RET | |||
67DE | LD A,$1E | Set distance to bikes | ||
67E0 | LD ($5DD5),A | |||
67E3 | LD A,($5DD6) | Are bikes in range yet? | ||
67E6 | CP $03 | |||
67E8 | RET Z | Return if not | ||
67E9 | INC A | Increase frame | ||
67EA | LD ($5DD6),A | |||
67ED | RET | |||
67EE | LD A,($5DD6) | |||
67F1 | CP $00 | |||
67F3 | RET Z | |||
67F4 | DEC A | |||
67F5 | LD ($5DD6),A | |||
67F8 | RET | |||
67F9 | RET | |||
67FA | LD A,($5DC7) | Get enemy bike 2 position | ||
67FD | CP $20 | Should be between 0 - 1F | ||
67FF | JR C,$67D4 | Check it if it is | ||
6801 | RET | Otherwise return |
Prev: 6781 | Up: Map | Next: 6802 |