29457: Routine at 7311
29457 |
CALL 27437 |
29460 |
CALL 29038 |
29463 |
LD HL,(30743) |
29466 |
LD A,L |
29467 |
RLCA |
29468 |
RLCA |
29469 |
RLCA |
29470 |
LD L,A |
29471 |
AND %00000111 |
29473 |
LD B,A |
29474 |
LD A,L |
29475 |
AND %11111000 |
29477 |
LD L,A |
29478 |
LD A,(30745) |
29481 |
ADD A,L |
29482 |
LD L,A |
29483 |
LD A,H |
29484 |
LD H,248 |
29486 |
LD DE,2048 |
29489 |
SUB 153 |
29491 |
ADD HL,DE |
29492 |
SUB 5 |
29494 |
JR NZ,29491 |
29496 |
LD A,H |
29497 |
ADD A,B |
29498 |
LD H,A |
29499 |
PUSH HL |
29500 |
LD DE,8 |
29503 |
SBC HL,DE |
29505 |
EX DE,HL |
29506 |
LD HL,(30785) |
29509 |
SBC HL,DE |
29511 |
LD A,H |
29512 |
AND A |
29513 |
JR NZ,29548 |
29515 |
LD A,L |
29516 |
CP 80 |
29518 |
JR NC,29548 |
29520 |
SUB 8 |
29522 |
SRA A |
29524 |
LD C,68 |
29526 |
LD E,A |
29527 |
LD D,11 |
29529 |
LD A,0 |
29531 |
ADC A,0 |
29533 |
CALL 30423 |
29536 |
LD A,(30757) |
29539 |
CP 68 |
29541 |
JR NZ,29548 |
29543 |
LD A,1 |
29545 |
LD (30784),A |
29548 |
POP HL |
29549 |
LD A,(30784) |
29552 |
AND A |
29553 |
RET Z |
29554 |
LD A,H |
29555 |
AND A |
29556 |
RET NZ |
29557 |
LD A,L |
29558 |
CP 128 |
29560 |
RET NC |
29561 |
LD A,128 |
29563 |
SUB L |
29564 |
NOP |
29565 |
NOP |
29566 |
NOP |
29567 |
NOP |
29568 |
NOP |
29569 |
LD C,71 |
29571 |
LD D,11 |
29573 |
SRA A |
29575 |
LD E,A |
29576 |
LD A,64 |
29578 |
ADC A,0 |
29580 |
CALL 30423 |
29583 |
RET |