| Routines

F99A: 'G' pressed - fire water pistol

The address of this routine is found in the table of keypress handling routines at E550. It is called from the main loop at F6EA when 'G' is pressed.
F99A | LD A,($7FEB) | 7FEB holds the inventory flags
F99D | AND $18 | Keep only bits 3 and 4 (the pistol bits)
F99F | RET Z | Return if ERIC hasn't got the water pistol
F9A0 | CALL $E24F | Give up now if buffer 0xD6 is already being used
F9A3 | LD HL,$F9AB | The routine at F9AB will control the water fired from the pistol
F9A6 | LD A,$0E | 0x0E: animatory state of ERIC firing the water pistol
F9A8 | JP $E12A | Begin the pistol-firing action