Subject: Re: test ans set
To: HARAWAT.IN.ORACLE.COM <HARAWAT.IN.oracle.com.ofcmail@in.oracle.com>
From: D. J. Vanecek <djv-list@bedford.net>
List: port-i386
Date: 10/01/1997 21:11:18
> 
> 	Is there a test and set instruction available for pentium processor. 
>  
> Harish 
> -----------------------------------------------------------------------------
> 
> Harish Singh Rawat			   E-Mail : harawat@in.oracle.com 
> Oracle Software India. Ltd.            Voice  : +91 (80) 225 - 6098/6099 
> Indian Development Center ( IDC )          Fax    : +91 (80) 225 - 6207/1591 
> Embassy Point, 150 Infantry Road 
> Bangalore - 560001 India 
> 


	Not with that name. Two instructions do it.
	In PeeCee assembler it goes:

	mov	eax,1
	xchg	memaddr,eax

	then jump on the flags. xchg is an atomic operation.

DV