A0F8: Routine at A0F8
A0F8 |
CALL $945C |
A0FB |
JR NZ,$A101 |
A0FD |
RES 1,(IX+$08) |
A101 |
LD A,($6090) |
A104 |
SUB $1A |
A106 |
CP $10 |
A108 |
JR NC,$A10F |
A10A |
CALL $A431 |
A10D |
JR $A126 |
A10F |
LD A,($6078) |
A112 |
CP $16 |
A114 |
JR C,$A121 |
A116 |
LD BC,$FFF4 |
A119 |
LD HL,($607A) |
A11C |
CALL $A43E |
A11F |
JR $A12C |
A121 |
LD BC,$0012 |
A124 |
JR $A119 |
A126 |
CALL $945C |
A129 |
JP Z,$A212 |
A12C |
LD A,($6080) |
A12F |
AND $01 |
A131 |
JP NZ,$A212 |
A134 |
LD A,(IX+$08) |
A137 |
AND $77 |
A139 |
JP NZ,$A212 |
A13C |
CALL $A4FC |
A13F |
JP NC,$A212 |
A142 |
BIT 3,(IX+$08) |
A146 |
JR Z,$A14C |
A148 |
XOR A |
A149 |
LD ($5EA3),A |
A14C |
LD A,($6080) |
A14F |
OR $01 |
A151 |
LD ($6080),A |
A154 |
LD (IX+$08),$06 |
A158 |
JP $B8BD |
A15B |
LD HL,($607A) |
A15E |
LD (IX+$02),L |
A161 |
LD (IX+$03),H |
A164 |
LD A,($607C) |
A167 |
ADD A,$12 |
A169 |
CP $AF |
A16B |
JR C,$A16F |
A16D |
LD A,$AF |
A16F |
LD (IX+$04),A |
A172 |
CALL $945C |
A175 |
JR NZ,$A17C |
A177 |
RES 1,(IX+$08) |
A17B |
RET |
A17C |
BIT 1,(IX+$08) |
A180 |
RET NZ |
A181 |
RES 2,(IX+$08) |
A185 |
LD A,($6080) |
A188 |
AND $FE |
A18A |
LD ($6080),A |
A18D |
SET 1,(IX+$08) |
A191 |
SET 7,(IX+$08) |
A195 |
LD A,($607D) |
A198 |
SRA A |
A19A |
SRA A |
A19C |
SRA A |
A19E |
SRA A |
A1A0 |
LD (IX+$05),A |
A1A3 |
LD (IX+$06),$01 |
A1A7 |
JP $B8C3 |