Prev: 43824 Up: Map Next: 43886
43860: 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 43860 LD DE,(43689) Fetch the previous position of the point where the rope hangs from (Previous_Rope_Anchor_Position).
43864 LD HL,(43671) Fetch the previous position of the end of the rope (Previous_Rope_End_Position).
43867 EXX Switch to the shadow registers.
43868 LD HL,(43669) Fetch the new position of the end of the rope.
43871 LD (43671),HL Store it as the previous position.
43874 LD DE,(43687) Fetch the position of the point where the rope hangs from.
43878 LD (43689),DE Store it as the previous position.
43882 CALL Draw_Line Draw the old rope and the new rope (see Draw_Line).
43885 RET Return.
Prev: 43824 Up: Map Next: 43886