Prev: 9C41 Up: Map Next: 9C8A
9C78: Condition: Is The Object Carried
Tests whether the object is being carried.
ConditionIsTheObjectCarried 9C78 LD A,($B6E8) Read *CurrentObject.
This entry point is used by the routines at Action_Shoot, Turn_RunTheHandlerIfPresent and Turn_ReportWhoIsCarryingAnObject.
ConditionIsTheObjectCarried_0 9C7B LD HL,$B6EA Point HL at the character whose turn it is.
This entry point is used by the routine at Action_Putdown.
ConditionIsTheObjectCarried_1 9C7E CP $FF Compare the object id with FF.
9C80 SCF If the object matches, return with carry set: it is carried.
9C81 RET Z Return if no object was named.
9C82 PUSH IX Call Condition_TestTheObjectIsHeld to see whether the object's location is this character.
9C84 CALL Condition_TestTheObjectIsHeld
9C87 POP IX Restore IX from the stack.
9C89 RET Return.
View the equivalent code in;
Prev: 9C41 Up: Map Next: 9C8A