Prev: 48491 Up: Map Next: 48815
48807: Test Object Can Be Picked Up
Used by the routine at HandlePickupAndDrop.
Tests whether an object is one of the four valves (objects 96 to 99) that the player is on or close to.
Input
IX The address of the player
IY The address of the object
Output
F Carry flag set if the object can be picked up
Return unless the object is a valve.
TestObjectCanBePickedUp 48807 LD A,(IY+0) Fetch the object number of the object.
48810 SUB 96 Subtract 96.
48812 CP 4 Return if it is not a valve.
48814 RET NC
Continue on to TestNearObject.
View the equivalent code in;
Prev: 48491 Up: Map Next: 48815