33459: Routine at 82B3
33459 |
LD A,(46814) |
33462 |
LD D,A |
33463 |
JP 30132 |
33466 |
LD A,(46873) |
33469 |
CP 1 |
33471 |
JP NZ,31017 |
33474 |
LD A,2 |
33476 |
LD (46873),A |
33479 |
LD A,(IY+1) |
33482 |
OR 128 |
33484 |
LD (IY+1),A |
33487 |
JP 30132 |
33490 |
LD A,(46873) |
33493 |
CP 2 |
33495 |
JP Z,30132 |
33498 |
LD A,1 |
33500 |
LD (46873),A |
33503 |
JP 30132 |
33506 |
PUSH DE |
33507 |
LD HL,46816 |
33510 |
LD DE,30079 |
33513 |
LD BC,6 |
33516 |
LDIR |
33518 |
POP DE |
33519 |
BIT 7,E |
33521 |
CALL 33527 |
33524 |
JP 30132 |
33527 |
JP Z,30776 |
33530 |
JP 30800 |
33533 |
LD A,D |
33534 |
LD (33359),A |
33537 |
PUSH DE |
33538 |
PUSH BC |
33539 |
PUSH IY |
33541 |
LD A,(46854) |
33544 |
LD (33360),A |
33547 |
LD DE,65512 |
33550 |
ADD IY,DE |
33552 |
LD A,1 |
33554 |
JP 30090 |
33557 |
LD A,(46875) |
33560 |
AND A |
33561 |
JR Z,33533 |
33563 |
DEC A |
33564 |
LD (46875),A |
33567 |
LD A,(33360) |
33570 |
LD B,A |
33571 |
LD A,(46854) |
33574 |
SUB B |
33575 |
AND A |
33576 |
LD C,0 |
33578 |
JR Z,33656 |
33580 |
POP IY |
33582 |
PUSH IY |
33584 |
LD DE,65512 |
33587 |
ADD IY,DE |
33589 |
LD B,A |
33590 |
LD IX,46904 |
33594 |
PUSH DE |
33595 |
PUSH BC |
33596 |
LD DE,25 |
33599 |
LD B,8 |
33601 |
LD A,(IX+0) |
33604 |
AND A |
33605 |
JR Z,33611 |
33607 |
ADD IX,DE |
33609 |
DJNZ 33601 |
33611 |
LD (IX+0),255 |
33615 |
INC IX |
33617 |
POP BC |
33618 |
POP DE |
33619 |
JR NZ,33656 |
33621 |
BIT 6,(IY+1) |
33625 |
JR Z,33633 |
33627 |
LD (IX-1),0 |
33631 |
JR 33651 |
33633 |
PUSH BC |
33634 |
LD B,24 |
33636 |
LD A,(IY+0) |
33639 |
LD (IX+0),A |
33642 |
INC IY |
33644 |
INC IX |
33646 |
DJNZ 33636 |
33648 |
POP BC |
33649 |
ADD IY,DE |
33651 |
ADD IY,DE |
33653 |
INC C |
33654 |
DJNZ 33590 |
33656 |
XOR A |
33657 |
LD (46873),A |
33660 |
LD A,C |
33661 |
LD (46903),A |
33664 |
POP IY |
33666 |
LD A,(33360) |
33669 |
LD (46854),A |
33672 |
POP BC |
33673 |
POP DE |
33674 |
LD A,(33359) |
33677 |
LD D,A |
33678 |
JP 30132 |
33681 |
CALL GameOver_Start |
33684 |
XOR A |
33685 |
IN A,(254) |
33687 |
AND %00011111 |
33689 |
CP 31 |
33691 |
JR Z,33684 |
33693 |
JP ReStart |