Prev: 28978 Up: Map Next: 29012
28992: 'D' pressed - drop stinkbomb
The address of this routine is found in the table of keypress handling routines at 58704. It is called from the main loop at 63210 when 'D' or 'U' is pressed.
28992 LD A,(32747) 32747 holds the inventory flags
28995 RLCA Does ERIC have any stinkbombs?
28996 RET NC Return if not
28997 CALL 28240 Is ERIC on a staircase?
29000 RET C Return if so
29001 CALL 57910 If buffer 213 (normally used by BOY WANDER's pellet) is available, prepare it and return here
29004 LD A,7 7: animatory state of ERIC dropping a stinkbomb (arm up)
29006 LD HL,63586 Routine at 63586: deal with a dropped stinkbomb
29009 JP 57642 Update ERIC's animatory state and drop the stinkbomb
Prev: 28978 Up: Map Next: 29012