Prev: F336 Up: Map Next: F346
F338: Make a character knock on a door or open it with a key
Continues from the routine at F600. Raises the character's arm and then hands control over to the interruptible subcommand routine at F346.
H Character number (0xD7-0xE5)
F338 LD L,$0E Set the address of the interruptible subcommand routine in bytes 0x0E and 0x0F of the character's buffer to F346
F33A LD (HL),$46
This entry point is used by the routines at F2F0, F383 and F6E9.
F33C CALL $E9C8 Update the SRB for the character's current animatory state and location
F33F AND $F8 A=character's base animatory state
F341 ADD A,$04 A=animatory state of the character with his arm up
F343 JP $E9D5 Update the character's animatory state and location and update the SRB
Prev: F336 Up: Map Next: F346