Prev: A3C5 Up: Map Next: A41A
A3E0: Routine at A3E0
A3E0 LD A,($9703) A=9703.
A3E3 CP (IX+$01)
A3E6 JP NZ,$A493
A3E9 CALL StoreEntity Call StoreEntity.
A3EC LD A,($970D) A=970D.
A3EF LD C,$00 C=00.
A3F1 LD B,$04 B=04.
A3F3 RRCA
A3F4 JR NC,$A3F7
A3F6 INC C
A3F7 DJNZ $A3F3
A3F9 SLA C
A3FB LD A,C
A3FC ADD A,$08
A3FE LD C,A
A3FF LD A,($9693) A=CounterLow.
A402 AND %00001111 Keep only bits 0-3.
A404 CP C
A405 JR C,$A409
A407 AND %00000111 Keep only bits 0-2.
A409 LD C,A Create an offset.
A40A LD B,$00
A40C LD HL,$A41A HL=SpriteReference + offset.
A40F ADD HL,BC
A410 LD A,(HL)
A411 LD (IX+$00),A
A414 CALL $A5CD Call A5CD.
A417 JP $AD5D Jump to AD5D.
Prev: A3C5 Up: Map Next: A41A