27767: Routine at 6C77
27767 |
LD A,(23348) |
27770 |
OR A |
27771 |
JR NZ,27780 |
27773 |
LD A,(23296) |
27776 |
CP 11 |
27778 |
JR NC,27818 |
27780 |
LD A,(23330) |
27783 |
OR A |
27784 |
JR NZ,27823 |
27786 |
LD A,(23302) |
27789 |
CP 2 |
27791 |
JR NC,27823 |
27793 |
LD BC,63486 |
27796 |
IN D,(C) |
27798 |
LD BC,61438 |
27801 |
IN A,(C) |
27803 |
ADD A,A |
27804 |
ADD A,A |
27805 |
XOR D |
27806 |
AND 16 |
27808 |
JR Z,27823 |
27810 |
BIT 4,D |
27812 |
JR Z,27818 |
27814 |
LD A,1 |
27816 |
JR 27820 |
27818 |
LD A,255 |
27820 |
CALL 27705 |
27823 |
LD A,(23335) |
27826 |
LD B,A |
27827 |
LD A,5 |
27829 |
SUB B |
27830 |
RRCA |
27831 |
RRCA |
27832 |
RRCA |
27833 |
INC A |
27834 |
LD B,A |
27835 |
SRL A |
27837 |
SRL A |
27839 |
ADD A,4 |
27841 |
LD C,A |
27842 |
LD A,(23330) |
27845 |
INC A |
27846 |
BIT 1,A |
27848 |
JR Z,27855 |
27850 |
CALL Sounds_Crash |
27853 |
JR 27862 |
27855 |
PUSH BC |
27856 |
CALL 27902 |
27859 |
POP BC |
27860 |
DJNZ 27855 |
27862 |
LD A,(23334) |
27865 |
LD B,A |
27866 |
LD A,15 |
27868 |
SUB B |
27869 |
RRCA |
27870 |
RRCA |
27871 |
RRCA |
27872 |
RRCA |
27873 |
INC A |
27874 |
LD B,A |
27875 |
SRL A |
27877 |
SRL A |
27879 |
ADD A,4 |
27881 |
LD C,A |
27882 |
LD A,(23330) |
27885 |
INC A |
27886 |
BIT 1,A |
27888 |
JR Z,27894 |
27890 |
CALL Sounds_Crash |
27893 |
RET |