w_line.asm
bitfixer_bitfixer/dg/z88dk/libsrc/graphics/w_line.asm
	INCLUDE	"graphics/grafix.inc"
	
	PUBLIC	w_line

	EXTERN	w_line_r

	EXTERN	coords

;
;	$Id: w_line.asm,v 1.5 2015/01/19 01:32:46 pauloscustodio Exp $
;

; ******************************************************************************
;
;	Draw a pixel line from (x0,y0) defined in COORDS (word,word) - the starting point coordinate,
;	to the end point (HL,DE).
;
;       Wide resolution (WORD based parameters) version by Stefano Bodrato
;

.w_line
		ex	de,hl
		ld	bc,(coords+2)
		or	a
		sbc	hl,bc
		ex	de,hl

		ld	bc,(coords)
		or	a
		sbc	hl,bc
.nocrossx
		jp	w_line_r
