![]() |
Routines |
| Prev: 54566 | Up: Map | Next: 54672 |
|
|
||||
| FindNextMatchingObject | 54652 | POP AF | Restore the object ID from the stack. | |
|
This entry point is used by the routine at PrintFormattedObjectList.
|
||||
| FindNextMatchingObject_Entry | 54653 | CALL FetchNextObjectWithID | Call FetchNextObjectWithID to fetch the next object with the specified ID. | |
| 54656 | JR NZ,FindNextMatchingObject_CheckCriteria | Jump to FindNextMatchingObject_CheckCriteria if the object was not found (A is not equal to 44). | ||
|
Object not found - return with carry flag set.
|
||||
| 54658 | SCF | Set the carry flag to indicate no object was found. | ||
| 54659 | RET | Return. | ||
|
Check if the object matches the location and visibility criteria.
|
||||
| FindNextMatchingObject_CheckCriteria | 54660 | PUSH AF | Stash the object ID on the stack. | |
| 54661 | CALL CheckObjectMatchCriteria | Call CheckObjectMatchCriteria to check if the object matches the location and visibility criteria. | ||
| 54664 | JR NC,FindNextMatchingObject | Jump to FindNextMatchingObject if the object doesn't match (A is greater than or equal to 44). | ||
|
Object matches - return with object ID.
|
||||
| FindNextMatchingObject_Found | 54666 | POP AF | Restore the object ID from the stack. | |
| 54667 | LD A,(IX+0) | A=*IX+0 (load the object ID from the object data into A). | ||
| 54670 | AND A | Set flags based on the object ID in A. | ||
| 54671 | RET | Return with the object ID in A and carry flag clear. | ||
| Prev: 54566 | Up: Map | Next: 54672 |