Prev: 53924 Up: Map Next: 54076
54002: Get Object Attribute Value
Used by the routine at ProcessObjectAttribute_C8C6.
GetObjectAttributeValue 54002 PUSH BC
54003 LD B,0
This entry point is used by the routine at GetCharacterAttributeWithSign.
GetObjectAttributeValue_0 54005 PUSH IX
54007 PUSH IY
54009 LD C,0
54011 CALL GetObjectAttributeValue_1
54014 LD A,C
54015 POP IY
54017 POP IX
54019 POP BC
54020 RET
GetObjectAttributeValue_1 54021 PUSH IX
54023 LD IX,35695
GetObjectAttributeValue_2 54027 CALL FetchNextObjectWithID
54030 JR Z,GetObjectAttributeValue_5
54032 CP (IY+1)
54035 JR NZ,GetObjectAttributeValue_2
54037 PUSH AF
54038 SUB A
54039 CP B
54040 LD A,C
54041 JR Z,GetObjectAttributeValue_3
54043 ADD A,(IY+2)
54046 JP PE,GetObjectAttributeValue_6
54049 LD C,A
54050 JR GetObjectAttributeValue_4
GetObjectAttributeValue_3 54052 ADD A,(IY+3)
54055 JP PE,GetObjectAttributeValue_6
54058 LD C,A
54059 LD A,(IX+0)
54062 CALL GetObjectAttributeValue_1
GetObjectAttributeValue_4 54065 POP AF
54066 JR GetObjectAttributeValue_2
GetObjectAttributeValue_5 54068 POP IX
54070 RET
GetObjectAttributeValue_6 54071 POP AF
54072 LD C,255
54074 JR GetObjectAttributeValue_5
Prev: 53924 Up: Map Next: 54076