Prev: 7CC7 Up: Map Next: 7CD8
7CC8: Collect a character's destination coordinates from a command list
Used by the routine at F600. Copies the destination coordinates from the command list into bytes 0x0A and 0x0B of the character's buffer, and inserts the location identifier for the destination into byte 0x0C.
Input
H Character number (0xD7-0xE5)
7CC8 LD L,$0A Copy the destination coordinates from the command list into bytes 0x0A and 0x0B of the character's buffer
7CCA CALL $F171
7CCD LD D,(HL) Transfer the destination coordinates to DE
7CCE DEC L
7CCF LD E,(HL)
7CD0 LD C,$01 Assume a destination z-coordinate of 1 (indoors)
7CD2 CALL $7199 Obtain an identifier for the destination location and copy it into byte 0x0C of the character's buffer
7CD5 LD L,$08 Point HL at byte 0x08 of the character's buffer
7CD7 RET
Prev: 7CC7 Up: Map Next: 7CD8