	.386
	.model use32 small
	public _strcspn
	.code
_strcspn:
	push	ebp
	mov	ebp,esp
	push	esi
	push	edi
	mov	esi,[8+ebp]
	mov	edx,[12+ebp]
	sub	eax,eax
lp:
	inc	eax
	test	byte ptr [esi],0ffh
	je	short exit
	mov	edi,edx
	mov	cl,[esi]
	inc	esi
lp1:
	test	byte ptr [edi],0ffh
	je	short lp
	cmp	cl,[edi]
	je	short exit
	inc	edi
	jmp	short lp1
exit:
	dec	eax
	pop	 edi
	pop	esi
	pop	ebp
	ret
	end