Prev: 29072 Up: Map Next: 29100
29088: Set a policeman's destination to Sam's current location
Used by the routines at 29218 and 31236. Copies Sam's coordinates and location identifier into bytes 10, 11 and 12 of the policeman's buffer, and also to 32731 (where they can be checked by the other policeman).
Input
H 222 or 223 (policeman), or 127 (when coming from 31236)
29088 CALL 29072 Set the policeman's destination to Sam's current location (when coming from 29218)
This entry point is used by the routine at 29100 with HL pointing at byte 12 of a policeman's buffer.
29091 LD DE,32733 Copy either (a) bytes 10, 11 and 12 of the policeman's buffer (which hold his destination coordinates and location identifier), or (b) Sam's coordinates and location identifier (just copied into 32522-32524 when coming from 31236) to 32731
29094 LD BC,3
29097 LDDR
29099 RET
Prev: 29072 Up: Map Next: 29100