Prev: AB30 Up: Map Next: AB6E
AB54: Draw Rope
Used by the routines at Handle_Sabreman_On_Rope and Handle_Rope.
Draws the rope in its new position and erases it from its old position. The drawing of a line uses XOR, so drawing the old line again removes it.
The old position of the anchor and the old end of the rope are put in the main register set and the new ones in the shadow register set. The new end of the rope is stored as the old one for the next time. Draw_Line draws both lines.
Draw_Rope AB54 LD DE,($AAA9) Fetch the previous position of the point where the rope hangs from (Previous_Rope_Anchor_Position).
AB58 LD HL,($AA97) Fetch the previous position of the end of the rope (Previous_Rope_End_Position).
AB5B EXX Switch to the shadow registers.
AB5C LD HL,($AA95) Fetch the new position of the end of the rope.
AB5F LD ($AA97),HL Store it as the previous position.
AB62 LD DE,($AAA7) Fetch the position of the point where the rope hangs from.
AB66 LD ($AAA9),DE Store it as the previous position.
AB6A CALL Draw_Line Draw the old rope and the new rope (see Draw_Line).
AB6D RET Return.
Prev: AB30 Up: Map Next: AB6E