Prev: 59839 Up: Map Next: 59861
59848: Update the SRB for a character's current animatory state and location
Used by the routines at 25118, 25420, 25789, 29149, 30989, 31204, 31476, 31670, 60293, 60347, 60506, 62264, 62325, 63281, 63558, 63954, 64005, 64131, 64218 and 64227. Updates the screen refresh buffer (SRB) for a character's current animatory state and location. Returns with the character's current coordinates in DE and animatory state in A.
Input
H Character number (215-230)
59848 LD L,2 Point HL at byte 2 of the character's buffer
59850 LD D,(HL) D=character's y-coordinate
59851 DEC L L=1
59852 LD E,(HL) E=character's x-coordinate
59853 DEC L L=0
59854 PUSH DE Save the character's coordinates briefly
59855 CALL 59868 Set the appropriate bits in the SRB for the character's current animatory state and location
59858 POP DE Restore the character's coordinates to DE
59859 LD A,(HL) A=character's animatory state
59860 RET
Prev: 59839 Up: Map Next: 59861