![]() |
Routines |
| Prev: 49822 | Up: Map | Next: 49874 |
|
Used by the routines at IsObjectCarried, TransformItem, Action_Help, Action_Climb, Action_Row and Action_Blow.
Return where this object is. 1 means it is being carried.
|
||||||||||||
| GetObjectLocation | 49854 | LD E,A | Jump to GetObjectLocation_Next when this is a scenic entry rather than an object. | |||||||||
| 49855 | LD D,0 | |||||||||||
| 49857 | BIT 7,A | |||||||||||
| 49859 | JR NZ,GetObjectLocation_Next | |||||||||||
| 49861 | LD HL,47560 | Use the object locations and join the lookup. | ||||||||||
| 49864 | JR GetObjectLocation_Index | |||||||||||
| GetObjectLocation_Next | 49866 | LD HL,47688 | Clear the scenic marker and use the scenic list. | |||||||||
| 49869 | RES 7,E | |||||||||||
| GetObjectLocation_Index | 49871 | ADD HL,DE | Add the index to the base address. | |||||||||
| 49872 | LD A,(HL) | |||||||||||
| 49873 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 49822 | Up: Map | Next: 49874 |