include	clib.inc

PPROC	strstart, string:DPTR
	push	di
	MLES	di,string
    strstart_00:
	mov	al,es:[di]
	inc	di
	test	al,al
	jz	strstart_01
	cmp	al,' '
	je	strstart_00
	cmp	al,9
	je	strstart_00
    strstart_01:
	MMOV	dx,es
	mov	ax,di
	dec	ax
	pop	di
	ret
PEND	strstart

	END
