| Routines

F7BF: Make a character open a door that has been knocked on

Used by the command lists at FD4E, FE23, FE58 and FE77. Opens the door that the character is standing behind, and then rewinds the command list such that the character returns to the spot where he was walking up and down before going to answer the door.
Input
H | Character number (0xD7-0xE5)
F7BF | PUSH HL | Save the character number briefly
F7C0 | CALL $F32C | Open the door
F7C3 | POP HL | Restore the character number to H
F7C4 | LD L,$16 | Byte 0x16 of the character's buffer holds the offset of the point reached in the command list
F7C6 | LD A,(HL) | Subtract 0x0E from this offset; this has the effect of sending the character back to the spot where he was walking up and down before answering the door
F7C7 | SUB $0E
F7C9 | LD (HL),A
F7CA | JP $F280 | Terminate this primary command