![]() |
Routines |
| Prev: CC13 | Up: Map | Next: CC53 |
|
Used by the routine at HandleSheriff.
Moves the sheriff one step. If bit 2 is set he speeds up. Otherwise he keeps his heading and slows down until he stops at a multiple of eight.
|
||||||||||
|
Walk if bit 2 is set.
|
||||||||||
| MovePlayer | CC42 | BIT 2,E | Jump to SpeedPlayerUp if the sheriff should walk. | |||||||
| CC44 | JR NZ,SpeedPlayerUp | |||||||||
|
Otherwise slow down in the direction of the heading.
|
||||||||||
| CC46 | LD A,(IX+$06) | Fetch the heading. | ||||||||
| CC49 | RLCA | Move the heading into the lowest two bits. | ||||||||
| CC4A | RLCA | |||||||||
| CC4B | AND %00000011 | Keep only the heading. | ||||||||
| CC4D | LD BC,$CC53 | Point BC at SlowDownRoutines. | ||||||||
| CC50 | JP RunTableRoutine | Jump to RunTableRoutine. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: CC13 | Up: Map | Next: CC53 |