Prev: 31943 Up: Map Next: 31960
31944: Collect a character's destination coordinates from a command list
Used by the routine at 62976. Copies the destination coordinates from the command list into bytes 10 and 11 of the character's buffer, and inserts the location identifier for the destination into byte 12.
Input
H Character number (215-229)
31944 LD L,10 Copy the destination coordinates from the command list into bytes 10 and 11 of the character's buffer
31946 CALL 61809
31949 LD D,(HL) Transfer the destination coordinates to DE
31950 DEC L
31951 LD E,(HL)
31952 LD C,1 Assume a destination z-coordinate of 1 (indoors)
31954 CALL 29081 Obtain an identifier for the destination location and copy it into byte 12 of the character's buffer
31957 LD L,8 Point HL at byte 8 of the character's buffer
31959 RET
Prev: 31943 Up: Map Next: 31960