clrarea.asm
bitfixer_bitfixer/dg/z88dk/libsrc/graphics/clrarea.asm
	PUBLIC	cleararea
	EXTERN	respixel

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

; ***********************************************************************
;
; Clear specified graphics area in map.
; Generic version
;
; Stefano Bodrato - March 2002
;
;
; IN:	HL	= (x,y)
;	BC	= (width,heigth)
;

.cleararea

		push	hl
		push	bc
.rowloop
		push	hl
		push	de
		push	bc
		call	respixel
		pop	bc
		pop	de
		pop	hl
		
		inc	h
		djnz	rowloop
		pop	bc
		pop	hl
		inc	l
		dec	c
		jr	nz,cleararea
		ret
