	
	move	r20,$0
restart	
	
	move	hold,$0168
	moveh	hold,last,$d000
	or	r7,last,0	;r7 start
	
	move	r1,$ff
	move	hold,$5a00
	or	r2,last,0	;r2 count
	
loop	
	add	r20,r20,1
	nop
	stw	r20,r7,0		;store
	add	r1,r1,1		;pixel color +
	add	r7,r7,1		;adr +
	
	cmpeq	r1,r2
	br.tc	loop				
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	
	br	restart				
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	
	