w_circle.asm
bitfixer_bitfixer/dg/z88dk/libsrc/graphics/w_circle.asm
;
;       Z88 Graphics Functions - Small C+ stubs
;
;       Written around the Interlogic Standard Library
;
;       Stubs Written by D Morris - 30/9/98
;
;
;	$Id: w_circle.asm,v 1.2 2015/01/19 01:32:46 pauloscustodio Exp $
;


;Usage: circle(struct *pixels)

	PUBLIC    circle
	EXTERN     w_draw_circle
	EXTERN     w_plotpixel
	EXTERN     swapgfxbk
	EXTERN	swapgfxbk1


.circle
		ld ix,0
		add ix,sp

;       de = x0, hl = y0, bc = radius, a = scale factor

		ld a,(ix+2)	;skip
		ld c,(ix+4)	;radius
		ld b,(ix+5)
		ld l,(ix+6)	;y
		ld h,(ix+7)
		ld e,(ix+8)	;x
		ld d,(ix+9)
		ld ix,w_plotpixel
		call swapgfxbk
		call w_draw_circle
		jp swapgfxbk1

