Prev: 26070 Up: Map Next: 26106
26086: Handler: Update Object Location
Write a new location for an object. The caller passes the object and the room, or 1 when the object is carried.
UpdateObjectLocation 26086 BIT 7,B An ordinary object is stored in the location table.
26088 JR Z,UpdateObjectLocation_Step1
26090 RES 7,B The scenic marker is not part of the object number.
26092 LD HL,25124 Continue at UpdateObjectLocation_Step2 to store this scenic object's room.
26095 JR UpdateObjectLocation_Step2
UpdateObjectLocation_Step1 26097 LD HL,25003 The ordinary objects are kept in the location table.
UpdateObjectLocation_Step2 26100 LD D,0 Store the new location for this object.
26102 LD E,B
26103 ADD HL,DE
26104 LD (HL),C
26105 RET Return.
Prev: 26070 Up: Map Next: 26106