![]() |
Routines |
| Prev: D474 | Up: Map | Next: D4A7 |
|
Used by the routines at CheckCharacterDisguise, ProcessCharacterDisplay_TestDisplayFlagEnd, SetCharacterPointerAndID and IsSherlockTheChinaMan.
Returns at once when the id is FF. Otherwise looks the object up. Returns FF when the object appears more than once, and the first location at offset 0F when it appears once.
|
||||||||||||
| GetObjectFirstLocation | D495 | CP $FF | Return if the id is FF. | |||||||||
| D497 | RET Z | |||||||||||
| D498 | CALL FetchObjectDataPointer | Call FetchObjectDataPointer to look that object up. | ||||||||||
| D49B | LD A,$01 | See whether the object appears once. | ||||||||||
| D49D | CP (IX+$00) | |||||||||||
| D4A0 | LD A,$FF | Leave FF when the object appears more than once. | ||||||||||
| D4A2 | RET NZ | Return if the object appears more than once. | ||||||||||
|
The object appears once, so return its first location.
|
||||||||||||
| D4A3 | LD A,(IX+$0F) | Read the object's first location. | ||||||||||
| D4A6 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: D474 | Up: Map | Next: D4A7 |