Prev: 46379 Up: Map Next: 46453
46432: Get Object Location
Get_ObjectLocation 46432 PUSH HL Keep the caller's pointers.
46433 PUSH DE
46434 LD E,A Look this object up in the item-location table.
46435 LD D,0
46437 LD HL,44406
46440 ADD HL,DE
46441 LD A,(44749) Read the current room into A.
46444 CP (HL) Branch to Get_ObjectLocation_Return when the byte at HL means the values match.
46445 JR Z,Get_ObjectLocation_Return
46447 LD A,1 See whether the object is in the inventory.
46449 CP (HL)
Get_ObjectLocation_Return 46450 POP DE Restore the caller's pointers from the stack, keeping the zero flag from the location test.
46451 POP HL
46452 RET Return.
Prev: 46379 Up: Map Next: 46453