![]() |
Routines |
| Prev: 52243 | Up: Map | Next: 52307 |
|
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 | 52290 | BIT 2,E | Jump to SpeedPlayerUp if the sheriff should walk. | |||||||
| 52292 | JR NZ,SpeedPlayerUp | |||||||||
|
Otherwise slow down in the direction of the heading.
|
||||||||||
| 52294 | LD A,(IX+6) | Fetch the heading. | ||||||||
| 52297 | RLCA | Move the heading into the lowest two bits. | ||||||||
| 52298 | RLCA | |||||||||
| 52299 | AND %00000011 | Keep only the heading. | ||||||||
| 52301 | LD BC,52307 | Point BC at SlowDownRoutines. | ||||||||
| 52304 | JP RunTableRoutine | Jump to RunTableRoutine. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 52243 | Up: Map | Next: 52307 |