Prev: 34151 Up: Map Next: 34174
34160: Point HL to property (given by E) of object whose index is A
Used by the routines at 30439, 31370, 32258, 32390, 33574, 34126, 35629, 35669, 35709, 35749 and 36275.
Input
A Index of an object
E Required property from properties table at 42242 (e.g. E = 0 for weight)
Output
HL Property E of object A
34160 ADD A,A Multiply index by eight...
34161 ADD A,A ...
34162 LD L,A ...
34163 LD H,0 ...
34165 ADD HL,HL ...and load into HL
34166 LD D,0 Add value of E (e.g. 6 for attribute)...
34168 ADD HL,DE ...
34169 LD DE,42242 Point DE at start of object properties table...
34172 ADD HL,DE ...and add into HL to point to property "E"
34173 RET Return
Prev: 34151 Up: Map Next: 34174