Prev: 9C41 Up: Map Next: 9C8A
9C78: Is the first object the actor's, or no object at all?
Used by the routines at MUST_CARRY, DO_TAKE, DO_GIVE, DO_ACTION and DO_TIE.
ACTOR_HAS_A asks the same of the object in A, and HELD_BY_ACTOR does the climbing: up through the holders until one is the actor or there are none.
Output
F C if so
ACTOR_HAS_FIRST 9C78 LD A,(TARGET)
This entry point is used by the routines at DO_SHOOT, DO_ACTION and CARRIED_BY_ANOTHER.
ACTOR_HAS_A 9C7B LD HL,ACTING
This entry point is used by the routine at DO_TAKE_OUT.
HELD_BY_HL 9C7E CP $FF
9C80 SCF
9C81 RET Z
9C82 PUSH IX
9C84 CALL HELD_BY_ACTOR
9C87 POP IX
9C89 RET
Prev: 9C41 Up: Map Next: 9C8A