40168: Routine at 9CE8
40168 |
PUSH BC |
40169 |
LD B,1 |
40171 |
JR 40176 |
40173 |
PUSH BC |
40174 |
LD B,0 |
40176 |
PUSH IX |
40178 |
PUSH IY |
40180 |
LD C,0 |
40182 |
CALL 40192 |
40185 |
LD A,C |
40186 |
POP IY |
40188 |
POP IX |
40190 |
POP BC |
40191 |
RET |
40192 |
PUSH IX |
40194 |
LD IX,49251 |
40198 |
CALL Step3ByteTable_Next |
40201 |
JR Z,40239 |
40203 |
CP (IY+1) |
40206 |
JR NZ,40198 |
40208 |
PUSH AF |
40209 |
SUB A |
40210 |
CP B |
40211 |
LD A,C |
40212 |
JR Z,40223 |
40214 |
ADD A,(IY+2) |
40217 |
JP PE,40242 |
40220 |
LD C,A |
40221 |
JR 40236 |
40223 |
ADD A,(IY+3) |
40226 |
JP PE,40242 |
40229 |
LD C,A |
40230 |
LD A,(IX+0) |
40233 |
CALL 40192 |
40236 |
POP AF |
40237 |
JR 40198 |
40239 |
POP IX |
40241 |
RET |
40242 |
POP AF |
40243 |
LD C,255 |
40245 |
JR 40239 |