F345: Routine at F345
F345 |
LD DE,$5E38 |
F348 |
LD HL,$5E35 |
F34B |
LD A,($5E77) |
F34E |
NEG |
F350 |
ADD A,$08 |
F352 |
LD B,A |
F353 |
SLA A |
F355 |
ADD A,B |
F356 |
LD C,A |
F357 |
LD B,$00 |
F359 |
LDDR |
F35B |
LD HL,$5E78 |
F35E |
LD BC,$0003 |
F361 |
LDIR |
F363 |
LD A,($5E71) |
F366 |
LD ($5E74),A |
F369 |
CP $01 |
F36B |
JR Z,$F372 |
F36D |
LD DE,$5E62 |
F370 |
JR $F375 |
F372 |
LD DE,$5E5F |
F375 |
CALL $F3BF |
F378 |
LD A,($5E72) |
F37B |
AND A |
F37C |
JP Z,$F33E |
F37F |
CP $02 |
F381 |
JP Z,$F39F |
F384 |
LD ($5E71),A |
F387 |
XOR A |
F388 |
LD ($5E72),A |
F38B |
LD DE,$5E5F |
F38E |
LD ($5E74),A |
F391 |
CALL $F3BF |
F394 |
LD A,B |
F395 |
AND A |
F396 |
JP Z,$F33E |
F399 |
CALL $F535 |
F39C |
JP $F5E3 |
F39F |
LD ($5E71),A |
F3A2 |
XOR A |
F3A3 |
LD ($5E72),A |
F3A6 |
LD DE,$5E62 |
F3A9 |
LD ($5E74),A |
F3AC |
CALL $F3BF |
F3AF |
LD A,B |
F3B0 |
AND A |
F3B1 |
JP Z,$F33E |
F3B4 |
LD A,$01 |
F3B6 |
LD ($5E65),A |
F3B9 |
CALL $F535 |
F3BC |
JP $F5E3 |