![]() |
Routines |
| Prev: BC6C | Up: Map | Next: BCA2 |
|
Used by the routine at CheckSheriffLost.
Puts the crosshair (an object of type 03) in the last object slot, if it is not already there.
|
||||
| CreateCrosshair | BC93 | LD DE,$A35D | Point DE at the last object slot. | |
| BC96 | LD A,(DE) | Return if the last object slot is in use. | ||
| BC97 | AND A | |||
| BC98 | RET NZ | |||
| BC99 | LD HL,$BCA2 | Point HL at CrosshairTemplate. | ||
| BC9C | LD BC,$0010 | Set the size of an object slot in BC. | ||
| BC9F | LDIR | Copy the template into the slot. | ||
| BCA1 | RET | Return. | ||
| Prev: BC6C | Up: Map | Next: BCA2 |