Routines

28855: Make character open or close door


The address of this routine is placed into bytes 17 and 18 of the character's buffer by the routine at 28814

H Character number (183-214)

28855 2E12 LD L,18
28857 3600 LD (HL),0 Blank out the address of this routine in the character's buffer
28859 2C INC L
28860 7E LD A,(HL) A=door identifier (see routine at 28767)
28861 2C INC L
28862 46 LD B,(HL) B=0 if character is to close the door, 1 if to open it

This entry point is used by the routine at 63801:
28863 CD4070 CALL 28736 Open or close the door
28866 CDB461 CALL 25012 Update SRB for current animatory state of character
28869 E6F8 AND 248 A=animatory state of character with arm down again
28871 C33061 JP 24880 Update SRB for this new animatory state of character