![]() |
Routines |
| Prev: DC43 | Up: Map | Next: DC71 |
|
Used by the routine at UPDATE_KNIGHT.
With the walk control (bit 2 of E, after TURN_KNIGHT) he walks on (WALK_ON). Without it he does not stop dead: COAST_TABLE's routine for his facing keeps him stepping until his place along it is a multiple of 8, so he always comes to rest on an eight-unit grid.
|
||||||||
| KNIGHT_WALKS | DC60 | BIT 2,E | Walking? | |||||
| DC62 | JR NZ,WALK_ON | |||||||
| DC64 | LD A,(IX+$06) | No: come to a stop, by the facing | ||||||
| DC67 | RLCA | |||||||
| DC68 | RLCA | |||||||
| DC69 | AND $03 | |||||||
| DC6B | LD BC,COAST_TABLE | |||||||
| DC6E | JP DISPATCH | |||||||
| Prev: DC43 | Up: Map | Next: DC71 |