| Routines

62192: 'K' pressed - knock on or open a door

The address of this routine is found in the table of keypress handling routines at 60672. It is called from the main loop at 61483 when 'K' is pressed.
Input
H | 230 (Sam)
62192 | LD A,64 | Set bit 6 of A
This entry point is used by the routine at 62212 with A=32 (bit 5 set).
62194 | LD (32764),A | Set the appropriate status flag at 32764
62197 | LD DE,58885 | Point DE at byte 5 of Sam's buffer
62200 | LD BC,3 | Copy bytes 0-2 of Sam's buffer (which hold his current animatory state and location) into bytes 5-7 for later retrieval
62203 | LD L,B
62204 | LDIR
62206 | CALL 62268 | Raise Sam's arm
62209 | JP 60654 | Make a sound effect