Prev: 9F08 Up: Map Next: 9F2D
9F25: Find the exit that goes through the first object
Used by the routines at LOOK_THROUGH, GO_THROUGH and SWIM_RIVER.
FIND_EXIT's search with the field it matches patched: byte 1 of an exit, the object it goes through, here; byte 2, the destination, from EXIT_TO.
Output
IX The exit
F Z if there is none
EXIT_VIA 9F25 LD A,(TARGET)
This entry point is used by the routines at THROW_THROUGH and THROW_ROPE_ACROSS.
EXIT_VIA_A 9F28 PUSH AF
9F29 LD A,$01
9F2B JR FIND_EXIT_FIELD
Prev: 9F08 Up: Map Next: 9F2D