![]() |
Routines |
| Prev: BA08 | Up: Map | Next: BA22 |
|
Keeps a guard heading south, at a speed of 02, until it hits something. It then turns west.
|
||||||||||||||
| GuardHeadingSouth | BA15 | LD HL,$FE00 | Set the speed in X to 00 and the speed in Y to FE. | |||||||||||
| BA18 | BIT 1,(IX+$0C) | Test whether the guard has hit something along the Y axis. | ||||||||||||
| BA1C | RET Z | Return if it has not. | ||||||||||||
| BA1D | LD HL,$00FE | Set the speed in X to FE and the speed in Y to 00. | ||||||||||||
| BA20 | JR TurnGuard | Jump to TurnGuard to turn the guard. | ||||||||||||
| Prev: BA08 | Up: Map | Next: BA22 |