;DRAW SPRITES ATTRIBUTE to VRAM

func_drawattrsprites:

push hl

ld hl,($cb00)
ld a,($cb02)

rlc h
rla
rlc h
rla
srl h
srl h
di
out ($99),a
ld a,142
out ($99),a
ld a,l
out ($99),a
ld a,h
or 64
ei
out ($99),a

pop hl

ld a,(7)
ld c,a
ld b,128

otir

ret

