Prev: 40712 Up: Map Next: 40749
40741: Exits: Find The Exit Through An Object
Searches the exit list for an exit whose via byte (offset 1) matches the object id in A (ExitsFindTheExitThroughAnObject_0 entry point). Returns with IX at the exit, or with A=255 and the zero flag set at the end of the list.
ExitsFindTheExitThroughAnObject 40741 LD A,(46824) Read *CurrentObject.
This entry point is used by the routines at Action_Unlock and Event_TheDeepBog.
ExitsFindTheExitThroughAnObject_0 40744 PUSH AF Search on the via byte (offset 1).
40745 LD A,1
40747 JR ExitsFindTheExitToALocation_PatchTheOffset Jump to ExitsFindTheExitToALocation_PatchTheOffset to search on that offset.
View the equivalent code in;
Prev: 40712 Up: Map Next: 40749