Prev: 8A3F Up: Map Next: 8AAC
8A88: Checks to see if Wally has walked away from an object slot if just pick up and object.
Used by the routine at Game_Start.
Input
Output
Wally_TestObjSlot 8A88 LD A,(ObjEventPause) See if Wally has just picked up.
8A8B OR A
8A8C RET Z
8A8D LD A,(Wally_RoomNo) If he has, see if he has now walked away from the object position.
8A90 LD E,A
8A91 ADD A,A
8A92 ADD A,E
8A93 LD E,A
8A94 LD HL,Room_ObjSlots
8A97 LD D,$00
8A99 ADD HL,DE
8A9A LD DE,(Wally_X)
8A9E LD A,(HL)
8A9F INC HL
8AA0 SUB E
8AA1 SUB $06
8AA3 CP $F4
8AA5 JR NC,Wally_TestObjSlot_0
8AA7 XOR A If he has walked away, reset the flag allow further picking up.
8AA8 LD (ObjEventPause),A
Wally_TestObjSlot_0 8AAB RET
Prev: 8A3F Up: Map Next: 8AAC