Prev: 9D2E Up: Map Next: 9D86
9D77: Can the object at IY be seen from IX?
Swaps IX and IY around a call to 9D92.
9D77 CALL $9D7D Swap IX and IY over, so that whichever object was "the one being looked at" (IY) becomes "the one doing the looking" (IX), and vice versa
9D7A CALL $9D92 Now test whether the two are in the same place, with them the right way round for that test
9D7D PUSH IX (This same code, reused: falling in here after the test above swaps IX and IY straight back again, and its own RET then returns from this whole routine)
9D7F PUSH IY
9D81 POP IX
9D83 POP IY
9D85 RET
Prev: 9D2E Up: Map Next: 9D86