| Routines

31204: 'G' pressed - get object

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 'G' is pressed.
Input
H | 230 (Sam)
31204 | LD A,32 | Set bit 5 of Sam's status flags at 32764
31206 | LD (32764),A
31209 | LD BC,3 | Copy bytes 0-2 of Sam's buffer (which hold his animatory state and coordinates) into bytes 5-7 for later retrieval
31212 | LD DE,58885
31215 | LD L,B
31216 | LDIR
31218 | CALL 59848 | Update the SRB for Sam's current animatory state and location
31221 | AND 128 | A=6 or 134: Sam bending his knees
31223 | ADD A,6
31225 | CALL 59861 | Update Sam's animatory state and location and update the SRB
31228 | CALL 30211 | Check whether Sam has picked up the hook or the budgie and update the icon panel accordingly
31231 | LD H,230 | 230=Sam
31233 | JP 60654 | Make a sound effect