| Routines

EC5A: Move a character from the midstride or mid-action position and update the SRB

Used by the routines at 71DD, EC7B, F5AC, F5CE and F698. Updates the character's animatory state and location, and updates the screen refresh buffer (SRB) accordingly.
Input
H | Character number (0xD7-0xE6)
EC5A | CALL $E9C8 | Update the SRB for the character's current animatory state and location
EC5D | LD L,$05 | Point HL at byte 0x05 of the character's buffer
EC5F | LD A,(HL) | A=character's post-midstride/post-action animatory state
EC60 | INC L | Collect the character's post-midstride/post-action coordinates in DE from bytes 0x06 and 0x07 of his buffer
EC61 | LD E,(HL)
EC62 | INC L
EC63 | LD D,(HL)
EC64 | LD (HL),$00 | Set byte 0x07 of the character's buffer to 0 (to indicate that he is neither midstride nor mid-action now)
EC66 | JP $E9D5 | Update the character's animatory state and location and update the SRB