Prev: A762 Up: Map Next: A792
A76A: Handler for the rope: PULL
If the boat is tied to the rope, pulling it brings it over: 'the boat glides across the river and lands on this side.' The boat moves between room 66 and room 67 (the east bank), is untied, and takes whatever is in it along (9B38). This is the way across the enchanted river - the HELP message at the river is 'boats can help. look carefully.'
A76A CALL $9C99 Dry run? Then stop here: it would work
A76D LD A,($C50B) Is the boat actually tied to the rope (the flag set by A708)?
A770 CP $12
A772 RET NZ No: nothing to pull
A773 LD HL,$AE85 "the boat glides across the river and lands on this side."
This entry point is used by the routine at A792.
A776 CALL $72D4 }
A779 LD A,($C51A) A = where the boat currently is
A77C CP $42 Is it on this side already (room 66)?
A77E LD A,$42
A780 JR NZ,$A784 No: it will end up on this side (room 66)
A782 LD A,$43 Yes (an odd case): send it to the OTHER side instead (room 67)
A784 LD ($C51A),A The boat moves there
A787 LD B,A B = that room
A788 LD A,$FF The rope is no longer tied to it
A78A LD ($C50B),A
A78D LD A,$29 A = the boat's own object number
A78F JP $9B38 Move it (and anything in it) there, reporting it if seen
Prev: A762 Up: Map Next: A792