Prev: D9BB Up: Map Next: DA0F
D9C3: Routine at D9C3
Used by the routines at E971, E982 and EF86.
D9C3 LD A,(IX+$05) Jump to D9D2 if *IX+05 is equal to *IX+04.
D9C6 CP (IX+$04)
D9C9 JP Z,$D9D2
D9CC INC (IX+$05) Increment *IX+05 by one.
D9CF JP $D9E2 Jump to D9E2.
D9D2 LD A,(IX+$01) Jump to D9E2 if *IX+01 is equal to *IX+02.
D9D5 CP (IX+$02)
D9D8 JP Z,$D9E2
D9DB INC (IX+$01) Increment *IX+01 by one.
D9DE LD (IX+$05),$01 Write 01 to *IX+05.
D9E2 LD A,(IX+$00) A=*IX+00.
D9E5 AND %00000011 Keep only bits 0-1.
D9E7 JP Z,$D9F3 Jump to D9F3 if the result is zero.
D9EA LD B,(IX+$03) B=*IX+03.
D9ED LD C,(IX+$01) C=*IX+01.
D9F0 JP $D9F9 Jump to D9F9.
D9F3 LD B,(IX+$01) B=*IX+01.
D9F6 LD C,(IX+$03) C=*IX+03.
D9F9 LD A,(IX+$05) A=*IX+05.
D9FC ADD A,$05 A+=05.
D9FE ADD A,L A+=L.
D9FF LD L,A L=A.
DA00 LD A,$00 A=00.
DA02 ADC A,H A+=H.
DA03 LD H,A H=A.
DA04 LD A,(HL) A=*HL.
DA05 CALL PrintSprite Call PrintSprite.
DA08 LD A,(IX+$05) A=*IX+05.
DA0B CP (IX+$04) Compare A with *IX+04.
DA0E RET Return.
Prev: D9BB Up: Map Next: DA0F