Prev: F2E1 Up: Map Next: F304
F2F0: 'K' pressed - knock on or open a door
The address of this routine is found in the table of keypress handling routines at ED00. It is called from the main loop at F02B when 'K' is pressed.
H 0xE6 (Sam)
F2F0 LD A,$40 Set bit 6 of A
This entry point is used by the routine at F304 with A=32 (bit 5 set).
F2F2 LD ($7FFC),A Set the appropriate status flag at 7FFC
F2F5 LD DE,$E605 Point DE at byte 0x05 of Sam's buffer
F2F8 LD BC,$0003 Copy bytes 0x00-0x02 of Sam's buffer (which hold his current animatory state and location) into bytes 0x05-0x07 for later retrieval
F2FE CALL $F33C Raise Sam's arm
F301 JP $ECEE Make a sound effect
Prev: F2E1 Up: Map Next: F304