HandlerFoodItem |
8C63 |
CALL StoreEntity |
|
8C66 |
CALL ApplyMovement_25 |
|
8C69 |
JR C,HandlerFoodItem_0 |
|
8C6B |
JP HandlerCaveDoorLocked_12 |
HandlerFoodItem_0 |
8C6E |
CALL RemoveEntity |
|
8C71 |
LD (IX+$00),$00 |
|
8C75 |
CALL SoundsEating |
|
8C78 |
LD C,$40 |
|
8C7A |
LD A,($5E28) |
|
8C7D |
ADD A,C |
|
8C7E |
JR C,HandlerFoodItem_1 |
|
8C80 |
CP $F0 |
|
8C82 |
JR C,HandlerFoodItem_2 |
HandlerFoodItem_1 |
8C84 |
LD A,$F0 |
HandlerFoodItem_2 |
8C86 |
LD ($5E28),A |
|
8C89 |
JP DrawChicken |
HandlerFoodItem_3 |
8C8C |
DEC A |
|
8C8D |
LD ($5E3C),A |
|
8C90 |
JR Z,HandlerFoodItem_5 |
|
8C92 |
AND $0F |
|
8C94 |
CALL Z,SoundsStart |
|
8C97 |
LD HL,$50C8 |
|
8C9A |
CALL AttributeAddress |
|
8C9D |
LD B,$06 |
HandlerFoodItem_4 |
8C9F |
LD A,(HL) |
|
8CA0 |
OR $80 |
|
8CA2 |
LD (HL),A |
|
8CA3 |
INC HL |
|
8CA4 |
DJNZ HandlerFoodItem_4 |
|
8CA6 |
RET |
HandlerFoodItem_5 |
8CA7 |
LD HL,$50C8 |
|
8CAA |
CALL AttributeAddress |
|
8CAD |
LD B,$06 |
HandlerFoodItem_6 |
8CAF |
LD A,(HL) |
|
8CB0 |
AND $7F |
|
8CB2 |
LD (HL),A |
|
8CB3 |
INC HL |
|
8CB4 |
DJNZ HandlerFoodItem_6 |
|
8CB6 |
RET |
|
8CB7 |
LD A,($5E3C) |
|
8CBA |
AND A |
|
8CBB |
JR NZ,HandlerFoodItem_3 |
|
8CBD |
LD A,($5C78) |
|
8CC0 |
AND $03 |
|
8CC2 |
JP NZ,HandlerFoodItem_8 |
|
8CC5 |
INC (IX+$06) |
|
8CC8 |
LD A,(IX+$07) |
|
8CCB |
CALL GetSpriteAddress |
|
8CCE |
LD A,(DE) |
|
8CCF |
CP (IX+$06) |
|
8CD2 |
JR Z,HandlerFoodItem_10 |
HandlerFoodItem_7 |
8CD4 |
PUSH DE |
|
8CD5 |
PUSH HL |
|
8CD6 |
LD B,H |
|
8CD7 |
LD C,L |
|
8CD8 |
LD A,(IX+$04) |
|
8CDB |
LD (IX+$02),A |
|
8CDE |
SUB (IX+$06) |
|
8CE1 |
LD (IX+$04),A |
|
8CE4 |
LD L,(IX+$06) |
|
8CE7 |
LD H,$00 |
|
8CE9 |
ADD HL,HL |
|
8CEA |
ADD HL,DE |
|
8CEB |
LD A,H |
|
8CEC |
LD (BC),A |
|
8CED |
DEC BC |
|
8CEE |
LD A,L |
|
8CEF |
LD (BC),A |
|
8CF0 |
PUSH HL |
|
8CF1 |
LD C,(HL) |
|
8CF2 |
LD B,(IX+$00) |
|
8CF5 |
PUSH BC |
|
8CF6 |
LD (HL),$01 |
|
8CF8 |
LD A,(IX+$07) |
|
8CFB |
LD (IX+$00),A |
|
8CFE |
CALL DrawEntity |
|
8D01 |
POP BC |
|
8D02 |
POP HL |
|
8D03 |
LD (HL),C |
|
8D04 |
LD (IX+$00),B |
|
8D07 |
LD A,(IX+$02) |
|
8D0A |
LD (IX+$04),A |
|
8D0D |
POP HL |
|
8D0E |
POP DE |
|
8D0F |
LD (HL),D |
|
8D10 |
DEC HL |
|
8D11 |
LD (HL),E |
HandlerFoodItem_8 |
8D12 |
LD A,(IX+$05) |
|
8D15 |
PUSH AF |
|
8D16 |
LD A,($5C78) |
|
8D19 |
RRCA |
|
8D1A |
RRCA |
|
8D1B |
AND $07 |
|
8D1D |
JR NZ,HandlerFoodItem_9 |
|
8D1F |
INC A |
HandlerFoodItem_9 |
8D20 |
OR $40 |
|
8D22 |
LD (IX+$05),A |
|
8D25 |
LD A,(IX+$06) |
|
8D28 |
CALL HandlerCaveDoorLocked_13 |
|
8D2B |
POP AF |
|
8D2C |
LD (IX+$05),A |
|
8D2F |
JP SoundsAppear |
HandlerFoodItem_10 |
8D32 |
LD A,(IX+$07) |
|
8D35 |
LD (IX+$00),A |
|
8D38 |
LD (IX+$06),$00 |
|
8D3C |
LD (IX+$07),$00 |
|
8D40 |
LD (IX+$02),$00 |
|
8D44 |
RET |
|
8D45 |
LD A,($5C78) |
|
8D48 |
AND $03 |
|
8D4A |
JR Z,HandlerFoodItem_8 |
|
8D4C |
DEC (IX+$06) |
|
8D4F |
JP M,HandlerFoodItem_11 |
|
8D52 |
LD A,(IX+$07) |
|
8D55 |
CALL GetSpriteAddress |
|
8D58 |
JP HandlerFoodItem_7 |
HandlerFoodItem_11 |
8D5B |
CALL $95A9 |
|
8D5E |
JP PreparePlayer |