6C77: Routine at 6C77
6C77 |
LD A,($5B34) |
6C7A |
OR A |
6C7B |
JR NZ,$6C84 |
6C7D |
LD A,($5B00) |
6C80 |
CP $0B |
6C82 |
JR NC,$6CAA |
6C84 |
LD A,($5B22) |
6C87 |
OR A |
6C88 |
JR NZ,$6CAF |
6C8A |
LD A,($5B06) |
6C8D |
CP $02 |
6C8F |
JR NC,$6CAF |
6C91 |
LD BC,$F7FE |
6C94 |
IN D,(C) |
6C96 |
LD BC,$EFFE |
6C99 |
IN A,(C) |
6C9B |
ADD A,A |
6C9C |
ADD A,A |
6C9D |
XOR D |
6C9E |
AND $10 |
6CA0 |
JR Z,$6CAF |
6CA2 |
BIT 4,D |
6CA4 |
JR Z,$6CAA |
6CA6 |
LD A,$01 |
6CA8 |
JR $6CAC |
6CAA |
LD A,$FF |
6CAC |
CALL $6C39 |
6CAF |
LD A,($5B27) |
6CB2 |
LD B,A |
6CB3 |
LD A,$05 |
6CB5 |
SUB B |
6CB6 |
RRCA |
6CB7 |
RRCA |
6CB8 |
RRCA |
6CB9 |
INC A |
6CBA |
LD B,A |
6CBB |
SRL A |
6CBD |
SRL A |
6CBF |
ADD A,$04 |
6CC1 |
LD C,A |
6CC2 |
LD A,($5B22) |
6CC5 |
INC A |
6CC6 |
BIT 1,A |
6CC8 |
JR Z,$6CCF |
6CCA |
CALL Sounds_Crash |
6CCD |
JR $6CD6 |
6CCF |
PUSH BC |
6CD0 |
CALL $6CFE |
6CD3 |
POP BC |
6CD4 |
DJNZ $6CCF |
6CD6 |
LD A,($5B26) |
6CD9 |
LD B,A |
6CDA |
LD A,$0F |
6CDC |
SUB B |
6CDD |
RRCA |
6CDE |
RRCA |
6CDF |
RRCA |
6CE0 |
RRCA |
6CE1 |
INC A |
6CE2 |
LD B,A |
6CE3 |
SRL A |
6CE5 |
SRL A |
6CE7 |
ADD A,$04 |
6CE9 |
LD C,A |
6CEA |
LD A,($5B22) |
6CED |
INC A |
6CEE |
BIT 1,A |
6CF0 |
JR Z,$6CF6 |
6CF2 |
CALL Sounds_Crash |
6CF5 |
RET |