CD3A: Routine at CD3A
main_loop_10 |
CD3A |
LD IYh,$EE |
|
CD3D |
LD A,($A240) |
|
CD40 |
ADD A,$20 |
|
CD42 |
LD IYl,A |
|
CD44 |
LD C,(IY+$00) |
|
CD47 |
LD A,($A23F) |
|
CD4A |
AND $E0 |
|
CD4C |
LD L,A |
|
CD4D |
LD B,A |
|
CD4E |
RRC L |
|
CD50 |
RRC L |
|
CD52 |
SUB L |
|
CD53 |
RRC L |
|
CD55 |
RRC L |
|
CD57 |
SUB L |
|
CD58 |
LD L,A |
|
CD59 |
INC L |
|
CD5A |
LD H,$E6 |
|
CD5C |
LD A,B |
|
CD5D |
CALL multiply |
|
CD60 |
NEG |
|
CD62 |
LD C,A |
|
CD63 |
EXX |
|
CD64 |
LD B,$15 |
|
CD66 |
LD DE,$E301 |
ml10_loop |
CD69 |
EXX |
|
CD6A |
LD E,(HL) |
|
CD6B |
SLA E |
|
CD6D |
PUSH HL |
|
CD6E |
LD D,$00 |
|
CD70 |
LD L,D |
|
CD71 |
LD H,L |
|
CD72 |
LD A,C |
|
CD73 |
ADD A,(IY+$00) |
|
CD76 |
LD C,A |
|
CD77 |
JR Z,ml10_continue |
|
CD79 |
JP P,main_loop_10_0 |
|
CD7C |
LD A,E |
|
CD7D |
DEC D |
|
CD7E |
NEG |
|
CD80 |
LD E,A |
|
CD81 |
LD A,C |
|
CD82 |
NEG |
main_loop_10_0 |
CD84 |
ADD A,A |
|
CD85 |
ADD A,A |
|
CD86 |
JR NC,main_loop_10_1 |
|
CD88 |
LD L,E |
|
CD89 |
LD H,D |
|
CD8A |
ADD HL,HL |
main_loop_10_1 |
CD8B |
ADD A,A |
|
CD8C |
JR NC,main_loop_10_2 |
|
CD8E |
ADD HL,DE |
main_loop_10_2 |
CD8F |
ADD HL,HL |
|
CD90 |
ADD A,A |
|
CD91 |
JR NC,main_loop_10_3 |
|
CD93 |
ADD HL,DE |
main_loop_10_3 |
CD94 |
ADD HL,HL |
|
CD95 |
ADD A,A |
|
CD96 |
JR NC,main_loop_10_4 |
|
CD98 |
ADD HL,DE |
main_loop_10_4 |
CD99 |
ADD HL,HL |
|
CD9A |
ADD A,A |
|
CD9B |
JR NC,main_loop_10_5 |
|
CD9D |
ADD HL,DE |
main_loop_10_5 |
CD9E |
ADD HL,HL |
|
CD9F |
ADD A,A |
|
CDA0 |
JR NC,main_loop_10_6 |
|
CDA2 |
ADD HL,DE |
main_loop_10_6 |
CDA3 |
ADD HL,HL |
|
CDA4 |
ADD A,A |
|
CDA5 |
JR NC,main_loop_10_7 |
|
CDA7 |
ADD HL,DE |
main_loop_10_7 |
CDA8 |
ADD HL,HL |
|
CDA9 |
LD A,H |
ml10_continue |
CDAA |
POP HL |
|
CDAB |
ADD A,(HL) |
|
CDAC |
INC L |
|
CDAD |
EXX |
|
CDAE |
LD (DE),A |
|
CDAF |
INC E |
|
CDB0 |
INC IYl |
|
CDB2 |
DJNZ ml10_loop |
|
CDB4 |
LD A,$A0 |
|
CDB6 |
LD (DE),A |
|
CDB7 |
LD HL,$E336 |
|
CDBA |
LD DE,$E301 |
|
CDBD |
LD BC,$1560 |
ml10_loop2 |
CDC0 |
LD A,(DE) |
|
CDC1 |
CP C |
|
CDC2 |
JP P,main_loop_10_8 |
|
CDC5 |
LD C,A |
main_loop_10_8 |
CDC6 |
LD (HL),C |
|
CDC7 |
INC L |
|
CDC8 |
INC E |
|
CDC9 |
DJNZ ml10_loop2 |
|
CDCB |
LD A,C |
|
CDCC |
ADD A,$03 |
|
CDCE |
AND $F8 |
|
CDD0 |
LD C,A |
|
CDD1 |
SUB (HL) |
|
CDD2 |
LD (HL),C |
|
CDD3 |
INC L |
|
CDD4 |
LD (HL),A |
|
CDD5 |
RET |