Prev: 7190 Up: Map Next: 71AC
71A0: Set a policeman's destination to Sam's current location
Used by the routines at 7222 and 7A04. Copies Sam's coordinates and location identifier into bytes 0x0A, 0x0B and 0x0C of the policeman's buffer, and also to 7FDB (where they can be checked by the other policeman).
Input
H 0xDE or 0xDF (policeman), or 0x7F (when coming from 7A04)
71A0 CALL $7190 Set the policeman's destination to Sam's current location (when coming from 7222)
This entry point is used by the routine at 71AC with HL pointing at byte 0x0C of a policeman's buffer.
71A3 LD DE,$7FDD Copy either (a) bytes 0x0A, 0x0B and 0x0C of the policeman's buffer (which hold his destination coordinates and location identifier), or (b) Sam's coordinates and location identifier (just copied into 7F0A-7F0C when coming from 7A04) to 7FDB
71A6 LD BC,$0003
71A9 LDDR
71AB RET
Prev: 7190 Up: Map Next: 71AC