Prev: 33863 Up: Map Next: 33911
33896: Check whether current character is carrying an object
Used by the routines at 33100, 33170, 33290, 33304, 33318, 33448 and 33468.
Input
E Index of an object
Output
F (via jumped-to routine at 33645) Zero flag set if object is present in inventory, reset otherwise
33896 LD A,(29632) Load A with index of Current Character
33899 PUSH DE Store DE (E = index of object to check for)
33900 CALL 33585 Point IX at current inventory of character with index A...
33903 PUSH IX ...and copy into HL...
33905 POP HL ...
33906 POP DE Restore DE (E = index of object to check for)
33907 LD A,E Load index of object to check for into A
33908 JP 33648 Check if object is in inventory data at HL and (re)set zero flag accordingly
Prev: 33863 Up: Map Next: 33911