
; HLineFast(chunky:a0:PTR TO chunky,x1:d0:LONG,x2:d1:LONG,y:d2:LONG,colour:d3:LONG)(LONG)

	machine	mc68020

	xdef	_HLineFast

_HLineFast
	move.l	d2,-(a7)

	muls.l	(a0),d2
	add.l	d0,d2		; d2 contains position of first pixel
	sub.l	d0,d1		; d1 contains count of pixels
	add.l	d2,a1		; set first position

.loop	move.b	d3,(a1)+
	dbra.s	d1,.loop

.finish	move.l	(a7)+,d2
	rts
