6BE7: Routine at 6BE7
6BE7 |
DI |
6BE8 |
PUSH IX |
6BEA |
PUSH HL |
6BEB |
POP IX |
6BED |
DEC (IX+$00) |
6BF0 |
JR NZ,$6C00 |
6BF2 |
LD A,(IX+$03) |
6BF5 |
LD (IX+$00),A |
6BF8 |
DEC (IX+$01) |
6BFB |
JR NZ,$6C04 |
6BFD |
INC (IX+$01) |
6C00 |
POP IX |
6C02 |
EI |
6C03 |
RET |
6C04 |
LD A,(IX+$02) |
6C07 |
ADD A,(IX+$01) |
6C0A |
LD HL,$5AB0 |
6C0D |
ADD A,L |
6C0E |
LD L,A |
6C0F |
LD C,$20 |
6C11 |
LD A,(IX+$01) |
6C14 |
CP $03 |
6C16 |
JR NC,$6C33 |
6C18 |
LD C,$50 |
6C1A |
PUSH HL |
6C1B |
LD DE,$001F |
6C1E |
SRL A |
6C20 |
SRL A |
6C22 |
SBC HL,DE |
6C24 |
LD B,$0E |
6C26 |
LD A,(HL) |
6C27 |
XOR (IX+$04) |
6C2A |
LD (HL),A |
6C2B |
INC HL |
6C2C |
DJNZ $6C26 |
6C2E |
LD (IX+$04),$80 |
6C32 |
POP HL |
6C33 |
LD (HL),C |
6C34 |
INC HL |
6C35 |
LD (HL),$30 |
6C37 |
JR $6C00 |
6C39 |
LD B,A |
6C3A |
LD A,($5B26) |
6C3D |
ADD A,B |
6C3E |
INC A |
6C3F |
JR NZ,$6C45 |
6C41 |
LD ($5B26),A |
6C44 |
RET |
6C45 |
DEC A |
6C46 |
CP $10 |
6C48 |
RET NC |
6C49 |
LD ($5B26),A |
6C4C |
LD HL,$5AA0 |
6C4F |
ADD A,L |
6C50 |
LD L,A |
6C51 |
LD (HL),$50 |
6C53 |
LD A,B |
6C54 |
DEC A |
6C55 |
JR NZ,$6C5A |
6C57 |
DEC HL |
6C58 |
JR $6C5B |
6C5A |
INC HL |
6C5B |
LD (HL),$30 |
6C5D |
RET |
6C5E |
PUSH HL |
6C5F |
LD A,$64 |
6C61 |
LD C,$2B |
6C63 |
CALL $6114 |
6C66 |
POP HL |
6C67 |
DEC H |
6C68 |
CALL $60F6 |
6C6B |
LD A,(DE) |
6C6C |
CP $2D |
6C6E |
RET NZ |
6C6F |
LD A,$62 |
6C71 |
LD C,$2B |
6C73 |
CALL $6114 |
6C76 |
RET |