Prev: 41925 Up: Map Next: 42010
41952: Routine at A3E0
41952 LD A,(38659) A=38659.
41955 CP (IX+1)
41958 JP NZ,42131
41961 CALL StoreEntity Call StoreEntity.
41964 LD A,(38669) A=38669.
41967 LD C,0 C=0.
41969 LD B,4 B=4.
41971 RRCA
41972 JR NC,41975
41974 INC C
41975 DJNZ 41971
41977 SLA C
41979 LD A,C
41980 ADD A,8
41982 LD C,A
41983 LD A,(38547) A=CounterLow.
41986 AND %00001111 Keep only bits 0-3.
41988 CP C
41989 JR C,41993
41991 AND %00000111 Keep only bits 0-2.
41993 LD C,A Create an offset.
41994 LD B,0
41996 LD HL,42010 HL=SpriteReference + offset.
41999 ADD HL,BC
42000 LD A,(HL)
42001 LD (IX+0),A
42004 CALL 42445 Call 42445.
42007 JP 44381 Jump to 44381.
Prev: 41925 Up: Map Next: 42010