Prev: 9B02 Up: Map Next: 9B44
9B16: Action: Climb
Used by the routine at Turn_GateTheMessage.
Climbs the current object.
ActionClimb 9B16 LD A,$FF Write FF to *B6E9.
9B18 LD ($B6E9),A
9B1B LD A,(IX+$01) Read where this object is from the object record.
9B1E LD ($B6E8),A Update *CurrentObject.
Find the object's record.
9B21 CALL LocateObject Call LocateObject to locate object.
9B24 BIT 3,(IX+$07) Jump back to Turn_GateTheMessage_1 if the object is broken.
9B28 JP NZ,Turn_GateTheMessage_1
9B2B BIT 6,(IX+$07) Jump back to Turn_GateTheMessage_1 if the object is an animal.
9B2F JP NZ,Turn_GateTheMessage_1
9B32 BIT 5,(IX+$07) Jump back to Turn_GateTheMessage_StepThePointerOnBySevenBytes if the object is not open.
9B36 JP Z,Turn_GateTheMessage_StepThePointerOnBySevenBytes
9B39 LD A,$37 Write 37 (climb out) to *CurrentAction.
9B3B LD ($B6E7),A
9B3E CALL Turn_ApplyTheSavedMatch Call Turn_ApplyTheSavedMatch to build the action sentence from the saved match.
9B41 JP Turn_GateTheMessage_StepThePointerOnBySevenBytes Jump back to Turn_GateTheMessage_StepThePointerOnBySevenBytes to clear *980B.
Prev: 9B02 Up: Map Next: 9B44