include	clib.inc

PPROC	memcmp, src:DWORD, dst:DWORD, len:WORD
	push	si
	push	di
	push	ds
	les	di,dst
	lds	si,src
	mov	cx,len
	cld
	repe	cmpsb
	mov	ax,cx
	pop	ds
	pop	di
	pop	si
	ret
PEND	memcmp

	END
