stencil_init.asm
bitfixer_bitfixer/dg/z88dk/libsrc/graphics/stencil_init.asm
;
;       Z88 Graphics Functions - Small C+ stubs
;
;       Written around the Interlogic Standard Library
;
;	Set/Reset the couple of vectors being part of a "stencil"
;	Basic concept by Rafael de Oliveira Jannone (calculate_side)
;
;       Stefano Bodrato - 13/3/2009
;
;
;	$Id: stencil_init.asm,v 1.3 2015/01/19 01:32:46 pauloscustodio Exp $
;

	INCLUDE	"graphics/grafix.inc"

                PUBLIC    stencil_init

.stencil_init
		; __FASTCALL__ means no need to pick HL ptr from stack
		
		ld	d,h
		ld	e,l
		inc	de
		ld	(hl),255
		ld	bc,maxy
		push	bc
		ldir
		pop	bc
		dec	bc
		ld	(hl),0
		ldir
		ret
