40409: Routine at 9DD9
40409 |
PUSH BC |
40410 |
PUSH DE |
40411 |
PUSH IY |
40413 |
LD IY,(46860) |
40417 |
LD D,(IY+16) |
40420 |
LD A,(46864) |
40423 |
LD E,A |
40424 |
CALL Step3ByteTable |
40427 |
JR Z,40477 |
40429 |
LD A,2 |
40431 |
CP E |
40432 |
JR Z,40449 |
40434 |
LD A,(IY+7) |
40437 |
AND 72 |
40439 |
CP 64 |
40441 |
LD A,0 |
40443 |
JR NZ,40446 |
40445 |
INC A |
40446 |
CP E |
40447 |
JR NZ,40424 |
40449 |
LD BC,8 |
40452 |
PUSH IY |
40454 |
ADD IY,BC |
40456 |
CALL 29171 |
40459 |
POP IY |
40461 |
JR NZ,40424 |
40463 |
LD A,(46863) |
40466 |
AND A |
40467 |
JR NZ,40477 |
40469 |
LD A,(IX+0) |
40472 |
CALL 40500 |
40475 |
JR Z,40424 |
40477 |
LD A,(IX+0) |
40480 |
POP IY |
40482 |
POP DE |
40483 |
POP BC |
40484 |
RET |
40485 |
CALL 40491 |
40488 |
CALL 40512 |
40491 |
PUSH IX |
40493 |
PUSH IY |
40495 |
POP IX |
40497 |
POP IY |
40499 |
RET |