64B7: Recalculate new tree density based on sector
64B7 |
XOR A |
64B8 |
LD H,$5B |
64BA |
LD L,A |
64BB |
LD B,A |
64BC |
LD (HL),A |
64BD |
INC L |
64BE |
DJNZ $64BC |
64C0 |
LD A,($5DD1) |
64C3 |
LD HL,$64AB |
64C6 |
DEC A |
64C7 |
JR Z,$64CC |
64C9 |
INC HL |
64CA |
JR $64C6 |
64CC |
LD B,(HL) |
64CD |
CALL $6491 |
64D0 |
LD L,A |
64D1 |
LD H,$5B |
64D3 |
LD (HL),$20 |
64D5 |
DJNZ $64CD |
64D7 |
LD HL,$5B00 |
64DA |
LD B,$00 |
64DC |
PUSH BC |
64DD |
PUSH HL |
64DE |
LD B,$03 |
64E0 |
LD A,(HL) |
64E1 |
CP $20 |
64E3 |
JR NZ,$64ED |
64E5 |
INC L |
64E6 |
CP (HL) |
64E7 |
JR NZ,$64EB |
64E9 |
LD (HL),$00 |
64EB |
DJNZ $64E5 |
64ED |
POP HL |
64EE |
POP BC |
64EF |
INC HL |
64F0 |
DJNZ $64DC |
64F2 |
RET |