89ED: Action 00 : Swaps object carried with object in room.
Action00_SwapObj |
89ED |
LD A,$01 |
|
89EF |
LD (ObjEventPause),A |
|
89F2 |
LD A,(HL) |
|
89F3 |
INC HL |
|
89F4 |
PUSH HL |
|
89F5 |
LD HL,Pocket1 |
|
89F8 |
CP (HL) |
|
89F9 |
JR Z,Action00_SwapObj_0 |
|
89FB |
INC HL |
Action00_SwapObj_0 |
89FC |
LD A,(Wally_RoomNo) |
|
89FF |
LD E,A |
|
8A00 |
ADD A,A |
|
8A01 |
ADD A,E |
|
8A02 |
LD E,A |
|
8A03 |
PUSH HL |
|
8A04 |
LD HL,Room_ObjSlots |
|
8A07 |
LD D,$00 |
|
8A09 |
ADD HL,DE |
|
8A0A |
EX DE,HL |
|
8A0B |
POP HL |
|
8A0C |
LD A,(DE) |
|
8A0D |
LD (BitmapX),A |
|
8A10 |
INC DE |
|
8A11 |
LD A,(DE) |
|
8A12 |
ADD A,$10 |
|
8A14 |
LD (BitmapY),A |
|
8A17 |
INC DE |
|
8A18 |
LD C,(HL) |
|
8A19 |
LD A,(DE) |
|
8A1A |
LD (HL),A |
|
8A1B |
LD A,C |
|
8A1C |
LD (DE),A |
|
8A1D |
ADD A,$50 |
|
8A1F |
CALL Bitmap16Draw |
|
8A22 |
LD A,(HL) |
|
8A23 |
ADD A,$50 |
|
8A25 |
CALL Bitmap16Draw |
|
8A28 |
CALL Inv_Redraw |
|
8A2B |
CALL Beep_PickUp |
|
8A2E |
POP HL |
|
8A2F |
JP Room_TestEvents_0 |