B549: Routine at B549
sub_b549 |
B549 |
LD A,$00 |
|
B54B |
AND A |
|
B54C |
RET Z |
|
B54D |
DEC A |
|
B54E |
LD ($B54A),A |
|
B551 |
RLCA |
|
B552 |
LD E,A |
|
B553 |
LD D,$00 |
|
B555 |
LD ($B571),DE |
|
B559 |
LD B,$03 |
|
B55B |
LD HL,$0000 |
sub_b549_0 |
B55E |
PUSH BC |
|
B55F |
LD E,(HL) |
|
B560 |
INC HL |
|
B561 |
LD D,(HL) |
|
B562 |
INC HL |
|
B563 |
PUSH HL |
|
B564 |
LD A,(DE) |
|
B565 |
INC A |
|
B566 |
AND $03 |
|
B568 |
LD (DE),A |
|
B569 |
RLCA |
|
B56A |
RLCA |
|
B56B |
LD C,A |
|
B56C |
RLCA |
|
B56D |
ADD A,C |
|
B56E |
LD C,A |
|
B56F |
INC DE |
|
B570 |
LD HL,$0000 |
|
B573 |
LD B,H |
|
B574 |
ADD HL,DE |
|
B575 |
LD D,(HL) |
|
B576 |
INC HL |
|
B577 |
LD E,(HL) |
|
B578 |
LD HL,$CEAA |
|
B57B |
ADD HL,BC |
|
B57C |
LD BC,$0601 |
|
B57F |
EXX |
|
B580 |
LD BC,$0000 |
|
B583 |
LD E,$01 |
|
B585 |
EXX |
|
B586 |
CALL sub_b67c_4 |
|
B589 |
POP HL |
|
B58A |
POP BC |
|
B58B |
DJNZ sub_b549_0 |
|
B58D |
RET |