s1:	equ	20
s2:	equ	10

test:
	move.l	#65536,d0
	divu.l	#s1,d0		;d0 is size
	moveq	#0,d1		;d1 is accum
	move.w	#s2,d2
	subq.w	#1,d2
	lea	table,a0
.loop:
	move.l	d1,d3
	asr.l	#8,d3
	move.w	d3,(a0)+
	add.l	d0,d1
	dbf	d2,.loop

bp:
	nop
	nop








size:	dc.w	0
accum:	dc.l	0
table:	ds.w	1000
