6C2D: Routine at 6C2D
6C2D |
XOR A |
6C2E |
LD ($5E1B),A |
6C31 |
LD BC,($5E19) |
6C35 |
DEC BC |
6C36 |
DEC BC |
6C37 |
DEC BC |
6C38 |
LD A,(BC) |
6C39 |
LD D,A |
6C3A |
CALL $6B30 |
6C3D |
CALL $6C82 |
6C40 |
JR NC,$6C49 |
6C42 |
LD A,$01 |
6C44 |
LD ($5E1B),A |
6C47 |
JR $6C35 |
6C49 |
LD A,($5E1B) |
6C4C |
AND A |
6C4D |
JR Z,$6C57 |
6C4F |
INC BC |
6C50 |
INC BC |
6C51 |
INC BC |
6C52 |
LD ($5E19),BC |
6C56 |
RET |
6C57 |
LD BC,($5E19) |
6C5B |
LD A,(BC) |
6C5C |
LD D,A |
6C5D |
CALL $6B30 |
6C60 |
CALL $6C82 |
6C63 |
RET C |
6C64 |
LD ($5E1C),HL |
6C67 |
INC BC |
6C68 |
INC BC |
6C69 |
INC BC |
6C6A |
LD A,(BC) |
6C6B |
LD D,A |
6C6C |
CALL $6B30 |
6C6F |
CALL $6C82 |
6C72 |
JR C,$6C52 |
6C74 |
PUSH HL |
6C75 |
LD DE,($5E1C) |
6C79 |
AND A |
6C7A |
SBC HL,DE |
6C7C |
POP HL |
6C7D |
JR Z,$6C67 |
6C7F |
JR C,$6C64 |
6C81 |
RET |