![]() |
Routines |
| Prev: 9F76 | Up: Map | Next: 9F94 |
|
Used by the routines at Turn_GateTheMessage, Turn_ApplyTheSavedMatch, TurnReportACharacter and Action_None.
Reads the first location an object appears in.
|
||||||||||||
| ObjectFirstLocation | 9F82 | CP $FF | Return if this is the terminator character (FF). | |||||||||
| 9F84 | RET Z | |||||||||||
| 9F85 | CALL LocateObject | Call LocateObject to set IX to the object data address. | ||||||||||
| 9F88 | LD A,$01 | Does the object appear in the game once? | ||||||||||
| 9F8A | CP (IX+$00) | |||||||||||
| 9F8D | LD A,$FF | The not-found id is FF. | ||||||||||
| 9F8F | RET NZ | Return if not. | ||||||||||
| 9F90 | LD A,(IX+$10) | Read the object's location. | ||||||||||
| 9F93 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 9F76 | Up: Map | Next: 9F94 |