zx_var_length.asm
bitfixer_bitfixer/dg/z88dk/libsrc/zx81/basic/zx_var_length.asm
;
;	ZX 81 specific routines
;	by Stefano Bodrato, Oct 2007
;
; 	This routine gives the size of memory used by BASIC variables
;
;	$Id: zx_var_length.asm,v 1.2 2015/01/19 01:33:26 pauloscustodio Exp $
;

	PUBLIC	zx_var_length
	
zx_var_length:

	ld	de,($4010) 	; VARS :  location of variables
	ld	hl,($4014)	; E-Line is end of VARS
	sbc	hl,de
	dec	hl	; let's make it simple...
	ret
