AD0D: Routine at AD0D
sub_ad0d |
AD0D |
LD A,($A221) |
|
AD10 |
AND A |
|
AD11 |
RET NZ |
|
AD12 |
LD IX,$A188 |
|
AD16 |
LD DE,$0014 |
|
AD19 |
LD B,$06 |
sub_ad0d_0 |
AD1B |
RLC (IX+$00) |
|
AD1F |
JR NC,ad0d_continue |
|
AD21 |
EXX |
|
AD22 |
LD HL,$AD4B |
|
AD25 |
PUSH HL |
|
AD26 |
LD A,(IX+$0F) |
|
AD29 |
INC A |
|
AD2A |
JR NZ,sub_ad0d_1 |
|
AD2C |
LD A,(IX+$11) |
|
AD2F |
AND A |
|
AD30 |
RET NZ |
sub_ad0d_1 |
AD31 |
LD A,(IX+$01) |
|
AD34 |
CP $14 |
|
AD36 |
RET NC |
|
AD37 |
LD D,$00 |
|
AD39 |
CALL sub_ad51 |
|
AD3C |
LD A,D |
|
AD3D |
AND A |
|
AD3E |
RET Z |
|
AD3F |
LD A,(IX+$0F) |
|
AD42 |
INC A |
|
AD43 |
RET Z |
|
AD44 |
LD L,(IX+$0B) |
|
AD47 |
LD H,(IX+$0C) |
|
AD4A |
JP (HL) |
ad0d_unbank_continue |
AD4B |
EXX |
ad0d_continue |
AD4C |
ADD IX,DE |
|
AD4E |
DJNZ sub_ad0d_0 |
|
AD50 |
RET |