Prev: 45641 Up: Map Next: 45685
45670: Unused routine
Check whether Current Character is carrying an object.
Input
E Index of an object
Output
F (via jumped-to routine at 45510) Zero flag set if object is present in inventory, reset otherwise
45670 LD A,(41937) Load A with index of Current Character
45673 PUSH DE Store DE (E = index of object to check for)
45674 CALL 45450 Point IX at current inventory of character with index A...
45677 PUSH IX ...and copy into HL...
45679 POP HL ...
45680 POP DE Restore DE (E = index of object to check for)
45681 LD A,E Load index of object to check for into A
45682 JP 45513 Check if object is in inventory data at HL and (re)set zero flag accordingly
Prev: 45641 Up: Map Next: 45685