| Routines

61B4: Update the SRB for a character's current animatory state and location

Used by many routines. 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 (0xB7-0xD6)
61B4 | LD L,$02 | Point HL at byte 0x02 of the character's buffer
61B6 | LD D,(HL) | D=character's y-coordinate (0-17)
61B7 | DEC L | L=0x01
61B8 | LD E,(HL) | E=character's x-coordinate (0-189)
61B9 | DEC L | L=0x00
61BA | LD C,(HL) | C=character's animatory state
61BB | PUSH DE | Save the character's coordinates briefly
61BC | CALL $6138 | Set the appropriate bits in the SRB for the character's current animatory state and location
61BF | POP DE | Restore the character's coordinates to DE
61C0 | LD A,(HL) | A=character's animatory state
61C1 | RET |