_TEXT	SEGMENT  BYTE PUBLIC 'CODE'

	ASSUME  CS: _TEXT 


	PUBLIC _i86_wcontrast
	;i86_wcontrast(s1, s2, count)
_i86_wcontrast PROC far
	push bp
	mov bp,sp
	push ds
	push si
	push di
	cld

	lds si,[bp+4+2]
	les di,[bp+8+2]
	mov cx,[bp+12+2]
	repne cmpsw
	inc cx

	mov ax,[bp+12+2]
	sub ax,cx

	pop di
	pop si
	pop ds
	pop	bp
	ret	
_i86_wcontrast ENDP

_TEXT	ENDS
END
