9020: Routine at 9020
9020 |
LD A,($5E6C) |
9023 |
AND A |
9024 |
RET NZ |
9025 |
LD A,($6090) |
9028 |
SUB $1A |
902A |
CP $10 |
902C |
RET NC |
902D |
LD HL,$9D5A |
9030 |
LD DE,$6078 |
9033 |
LD BC,$0018 |
9036 |
LDIR |
9038 |
LD HL,($6092) |
903B |
LD BC,($6182) |
903F |
CALL $AD3F |
9042 |
LD HL,($6092) |
9045 |
JR NC,$9076 |
9047 |
LD BC,$0040 |
904A |
CALL $A002 |
904D |
LD A,L |
904E |
AND %11111000 |
9050 |
LD L,A |
9051 |
LD ($607A),HL |
9054 |
LD A,$40 |
9056 |
LD HL,$5E00 |
9059 |
BIT 0,(HL) |
905B |
JR Z,$905F |
905D |
ADD A,$3F |
905F |
LD ($5E67),A |
9062 |
LD A,($5EA1) |
9065 |
DEC A |
9066 |
LD ($5EA1),A |
9069 |
LD HL,$9000 |
906C |
LD ($608E),HL |
906F |
XOR A |
9070 |
LD ($5E6C),A |
9073 |
JP DisplayPlayerLives |
9076 |
LD BC,$FFC0 |
9079 |
JR $904A |