2 //TESTSET is an atomic test-and-set.
3 //If the lock was
not set prior to the TESTSET
, cc is set
, the lock bit is set
,
4 //and this processor gets the lock. If the lock was set
5 //prior to the TESTSET
, cc is cleared
, the lock bit is still set
,
6 //but the processor fails to acquire the lock.
9 .include "testutils.inc"
13 loadsym P0
, datalabel;