clsgraph.asm
bitfixer_bitfixer/dg/z88dk/libsrc/graphics/text6/clsgraph.asm
;
;       Generic pseudo graphics routines for text-only platforms
;	Version for the 2x3 graphics symbols
;
;       Written by Stefano Bodrato 19/12/2006
;
;
;       Clears graph screen.
;
;
;	$Id: clsgraph.asm,v 1.3 2015/01/19 01:32:51 pauloscustodio Exp $
;


			INCLUDE	"graphics/grafix.inc"

			PUBLIC	cleargraphics
			EXTERN	base_graphics


.cleargraphics

	ld	hl,(base_graphics)
	ld	bc,maxx*maxy/6-1
.clean
	ld	(hl),blankch
	inc	hl
	dec	bc
	ld	a,b
	or	c
	jr	nz,clean

	ret
