Prev: 54652 Up: Map Next: 54672
54653: Find The Next Matching Object
Used by the routine at PrintFormattedObjectList.
Finds the next object with this id, and gives up when the list ends or the object is not here.
FindMatchingObject 54653 CALL FetchNextObjectWithID Call FetchNextObjectWithID to fetch the next object with this id.
54656 JR NZ,FindMatchingObject_CheckCriteria Go to FindMatchingObject_CheckCriteria if another object remains.
Object not found, so return that failure to the caller.
54658 SCF Set the carry to report that no object was found.
54659 RET Return.
Read the record flag.
FindMatchingObject_CheckCriteria 54660 PUSH AF Call CheckObjectMatchCriteria to check if the object matches the location and visibility criteria, keeping fetch next object with id result.
54661 CALL CheckObjectMatchCriteria
54664 JR NC,FindNextMatchingObject Go to FindNextMatchingObject if CheckObjectMatchCriteria does not match this object.
Object matches - return with object ID.
FindMatchingObject_Found 54666 POP AF Restore the saved result from the stack.
54667 LD A,(IX+0) Read the record flag.
54670 AND A Clear the carry to report that this object was found.
54671 RET Return.
Prev: 54652 Up: Map Next: 54672