![]() |
Routines |
| Prev: B9E0 | Up: Map | Next: BA08 |
|
Keeps a guard heading north, at a speed of 02, until it hits something. It then turns east.
|
||||||||||||||
| GuardHeadingNorth | B9FB | LD HL,$0200 | Set the speed in X to 00 and the speed in Y to 02. | |||||||||||
| B9FE | BIT 1,(IX+$0C) | Test whether the guard has hit something along the Y axis. | ||||||||||||
| BA02 | RET Z | Return if it has not. | ||||||||||||
| BA03 | LD HL,$0002 | Set the speed in X to 02 and the speed in Y to 00. | ||||||||||||
| BA06 | JR TurnGuard | Jump to TurnGuard to turn the guard. | ||||||||||||
| Prev: B9E0 | Up: Map | Next: BA08 |