;SET SPRITES ATTRIBUTE from matrix to data

func_setattrsprites:

ld c,b
ld b,32

func_setattrsprites_1:
	
ld a,(ix+32)
add a,c
cp 216
jr nz,func_setattrsprites_2

inc a

func_setattrsprites_2:

ld (hl),a
inc hl
ld a,(ix+0)
ld (hl),a
inc hl
ld a,(ix+64)
ld (hl),a
inc hl
ld a,(ix+96)
ld (hl),a
inc hl
inc ix

djnz func_setattrsprites_1

ret
