A97E: main_loop_20
main_loop_20 |
A97E |
LD A,$00 |
|
A980 |
AND A |
|
A981 |
RET Z |
|
A982 |
LD IYh,$E3 |
|
A985 |
LD IYl,$61 |
|
A988 |
LD BC,$1400 |
|
A98B |
LD HL,$ED28 |
ml20_loop1 |
A98E |
LD A,(HL) |
|
A98F |
AND A |
|
A990 |
INC HL |
|
A991 |
JR NZ,main_loop_20_0 |
|
A993 |
INC HL |
|
A994 |
INC HL |
|
A995 |
INC HL |
ml20_loop1_continue |
A996 |
DEC IY |
|
A998 |
DJNZ ml20_loop1 |
|
A99A |
LD A,C |
|
A99B |
AND A |
|
A99C |
RET NZ |
|
A99D |
LD ($A97F),A |
|
A9A0 |
LD ($C0BC),A |
|
A9A3 |
LD ($A9DF),A |
|
A9A6 |
RET |
main_loop_20_0 |
A9A7 |
LD A,(HL) |
|
A9A8 |
INC HL |
|
A9A9 |
INC C |
|
A9AA |
EXX |
|
A9AB |
EX AF,AF' |
|
A9AC |
LD A,(IY+$01) |
|
A9AF |
ADD A,A |
|
A9B0 |
CPL |
|
A9B1 |
LD L,A |
|
A9B2 |
LD H,$E8 |
|
A9B4 |
LD D,(HL) |
|
A9B5 |
DEC L |
|
A9B6 |
LD E,(HL) |
|
A9B7 |
LD H,$EC |
|
A9B9 |
LD A,(HL) |
|
A9BA |
INC L |
|
A9BB |
LD H,(HL) |
|
A9BC |
LD L,A |
|
A9BD |
AND A |
|
A9BE |
PUSH DE |
|
A9BF |
SBC HL,DE |
|
A9C1 |
EX DE,HL |
|
A9C2 |
LD HL,$0000 |
|
A9C5 |
EX AF,AF' |
|
A9C6 |
LD B,$08 |
ml20_loop2 |
A9C8 |
RLA |
|
A9C9 |
JR NC,main_loop_20_1 |
|
A9CB |
ADD HL,DE |
main_loop_20_1 |
A9CC |
ADD HL,HL |
|
A9CD |
DJNZ ml20_loop2 |
|
A9CF |
LD A,H |
|
A9D0 |
RRA |
|
A9D1 |
LD C,A |
|
A9D2 |
POP HL |
|
A9D3 |
ADD HL,BC |
|
A9D4 |
PUSH HL |
|
A9D5 |
EXX |
|
A9D6 |
POP DE |
|
A9D7 |
LD (HL),E |
|
A9D8 |
INC HL |
|
A9D9 |
LD (HL),D |
|
A9DA |
INC HL |
|
A9DB |
JP ml20_loop1_continue |