8456 |
LD A,($DFDC) |
8459 |
CALL $82CB |
845C |
LD HL,$0000 |
845F |
LD ($82F2),HL |
8462 |
CALL $813C |
8465 |
JP C,$84EE |
8468 |
LD ($82F2),IX |
846C |
PUSH IX |
846E |
POP DE |
846F |
LD HL,(PathScopes_DFDA) |
8472 |
AND A |
8473 |
SBC HL,DE |
8475 |
JR NZ,$84EE |
8477 |
LD A,($DFDC) |
847A |
CALL $818E |
847D |
LD HL,($818C) |
8480 |
LD DE,$0003 |
8483 |
AND A |
8484 |
SBC HL,DE |
8486 |
JR C,$84EE |
8488 |
LD IX,($82F2) |
848C |
LD A,($DFDC) |
848F |
LD B,$00 |
8491 |
LD C,$03 |
8493 |
LD L,(IX+$01) |
8496 |
LD H,$00 |
8498 |
ADD HL,HL |
8499 |
PUSH IX |
849B |
POP DE |
849C |
LD IX,(Baddy_LinkPtr) |
84A0 |
LD (IX+$12),E |
84A3 |
LD (IX+$13),D |
84A6 |
BIT 0,A |
84A8 |
JR Z,$84BC |
84AA |
LD (IX+$07),L |
84AD |
LD (IX+$08),H |
84B0 |
LD E,(IX+$05) |
84B3 |
LD D,(IX+$06) |
84B6 |
LD HL,(ManData_PosPrimary_dfc3) |
84B9 |
LD A,B |
84BA |
JR $84CC |
84BC |
LD (IX+$05),L |
84BF |
LD (IX+$06),H |
84C2 |
LD E,(IX+$07) |
84C5 |
LD D,(IX+$08) |
84C8 |
LD HL,(ManData_PosSecondary_dfc5) |
84CB |
LD A,C |
84CC |
AND A |
84CD |
SBC HL,DE |
84CF |
JR C,$84D3 |
84D1 |
XOR $02 |
84D3 |
LD (IX+$02),A |
84D6 |
LD HL,($818C) |
84D9 |
BIT 7,H |
84DB |
JR Z,$84E4 |
84DD |
LD A,L |
84DE |
CPL |
84DF |
LD L,A |
84E0 |
LD A,H |
84E1 |
CPL |
84E2 |
LD H,A |
84E3 |
INC HL |
84E4 |
LD A,L |
84E5 |
AND A |
84E6 |
JR NZ,$84EA |
84E8 |
LD A,$FF |
84EA |
LD (IX+$0A),A |
84ED |
RET |
84EE |
LD IX,(Baddy_LinkPtr) |
84F2 |
LD A,($DFDC) |
84F5 |
XOR $01 |
84F7 |
CALL $82CB |
84FA |
LD HL,$0000 |
84FD |
LD ($82F4),HL |
8500 |
CALL $813C |
8503 |
JR C,$8523 |
8505 |
LD ($82F4),IX |
8509 |
LD A,($DFDC) |
850C |
XOR $01 |
850E |
CALL $818E |
8511 |
JR C,$8523 |
8513 |
LD IX,($82F4) |
8517 |
LD A,($DFDC) |
851A |
XOR $01 |
851C |
LD B,$00 |
851E |
LD C,$03 |
8520 |
JP $8493 |
8523 |
LD HL,($82F2) |
8526 |
LD A,L |
8527 |
OR H |
8528 |
JR Z,$857A |
852A |
LD IX,($82F2) |
852E |
LD A,($DFDC) |
8531 |
CALL $818E |
8534 |
JP NC,$8488 |
8537 |
LD HL,($82F2) |
853A |
LD IX,(Baddy_LinkPtr) |
853E |
LD E,(IX+$12) |
8541 |
LD D,(IX+$13) |
8544 |
AND A |
8545 |
SBC HL,DE |
8547 |
JR Z,$8565 |
8549 |
LD IX,($82F2) |
854D |
LD A,($DFDC) |
8550 |
OR $80 |
8552 |
CALL $818E |
8555 |
JR C,$857A |
8557 |
LD IX,($82F2) |
855B |
LD A,($DFDC) |
855E |
LD B,$02 |
8560 |
LD C,$01 |
8562 |
JP $8493 |
8565 |
LD HL,($82F4) |
8568 |
LD A,L |
8569 |
OR H |
856A |
JR Z,$8549 |
856C |
LD IX,(Baddy_LinkPtr) |
8570 |
LD E,(IX+$12) |
8573 |
LD D,(IX+$13) |
8576 |
SBC HL,DE |
8578 |
JR Z,$8549 |
857A |
LD IX,($82F4) |
857E |
LD A,($DFDC) |
8581 |
XOR $01 |
8583 |
OR $80 |
8585 |
CALL $818E |
8588 |
JR C,$8549 |
858A |
LD IX,($82F4) |
858E |
LD A,($DFDC) |
8591 |
XOR $01 |
8593 |
LD B,$02 |
8595 |
LD C,$01 |
8597 |
JP $8493 |